Skip to content

Commit 57e5f39

Browse files
committed
Backport #31070
* Make example less broken-looking don't want to give impression that now it's ok to just sprinkle `role="button"` around. this at least makes the `span` keyboard-focusable, similar to at least the start of a custom control
1 parent 5f0b8c9 commit 57e5f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/docs/4.5/content/reboot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ These changes, and more, are demonstrated below.
303303
Reboot includes an enhancement for `role="button"` to change the default cursor to `pointer`. Add this attribute to elements to help indicate elements are interactive. This role isn't necessary for `<button>` elements, which get their own `cursor` change.
304304

305305
{% capture example %}
306-
<span role="button">Non-button element button</span>
306+
<span role="button" tabindex="0">Non-button element button</span>
307307
{% endcapture %}
308308
{% include example.html content=example %}
309309

0 commit comments

Comments
 (0)