Skip to content

Commit

Permalink
Docs: fix old/broken example capture and typo (#31070)
Browse files Browse the repository at this point in the history
* Docs: fix old/broken example capture and typo

* 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

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
patrickhlauke and XhmikosR committed Jun 17, 2020
1 parent 8efe4aa commit 5ad43fe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions site/content/docs/5.0/content/reboot.md
Expand Up @@ -372,12 +372,11 @@ These changes, and more, are demonstrated below.

### Pointers on buttons

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 gets its own `cursor` change.
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>
{% endcapture %}
{% include example.html content=example %}
{{< example >}}
<span role="button" tabindex="0">Non-button element button</span>
{{< /example >}}

## Misc elements

Expand Down

0 comments on commit 5ad43fe

Please sign in to comment.