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

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.
  • Loading branch information
rniwa committed Feb 8, 2023
1 parent 42ac0c1 commit 5060f34
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 5060f34

Please sign in to comment.