mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
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
This commit is contained in:
parent
920dc619a4
commit
9b241e630c
@ -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.
|
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 %}
|
{% capture example %}
|
||||||
<span role="button">Non-button element button</span>
|
<span role="button" tabindex="0">Non-button element button</span>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
{% include example.html content=example %}
|
{% include example.html content=example %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user