Skip to content

Commit

Permalink
Fix shadow-dom/focus-navigation/focus-navigation-web-component-input-…
Browse files Browse the repository at this point in the history
…type-radio.html for Safari (#38410)

This test was erroneously assuming that radio buttons are focusable.
Use a span with ARIA role=radio and tabindex=0 instead as this is not the case in Safari.

Also rename the test accordingly.
  • Loading branch information
rniwa authored and marcoscaceres committed Mar 28, 2023
1 parent 394f636 commit 2e4323f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script src="resources/focus-utils.js"></script>

<template id="custom-radio">
<input type="radio">
<span aria-role="radio" tabindex="0">&#x1F518;</span>
<slot></slot>
</template>

Expand Down

0 comments on commit 2e4323f

Please sign in to comment.