]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Backport #31070
authorXhmikosR <xhmikosr@gmail.com>
Wed, 17 Jun 2020 14:31:37 +0000 (17:31 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 24 Jun 2020 12:16:58 +0000 (15:16 +0300)
* 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

site/docs/4.5/content/reboot.md

index 2f0904f3f116693cdac6f794c7aeb2afa78d7ae4..712e3d11f41a46df6269ec08f0265c6319344884 100644 (file)
@@ -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 %}