0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-18 15:54:26 +01:00

Docs: fix old/broken example capture and typo (#31070)

* 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>
This commit is contained in:
Patrick H. Lauke 2020-06-17 13:28:35 +01:00 committed by GitHub
parent 8efe4aa9af
commit 5ad43fec83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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