Skip to content

Commit

Permalink
Backport #31070
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
XhmikosR committed Jun 23, 2020
1 parent 03bca61 commit 77ad32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/4.5/content/reboot.md
Expand Up @@ -303,7 +303,7 @@ These changes, and more, are demonstrated below.
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.

{% capture example %}
<span role="button">Non-button element button</span>
<span role="button" tabindex="0">Non-button element button</span>
{% endcapture %}
{% include example.html content=example %}

Expand Down

0 comments on commit 77ad32b

Please sign in to comment.