]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: fix old/broken example capture and typo (#31070)
authorPatrick H. Lauke <redux@splintered.co.uk>
Wed, 17 Jun 2020 12:28:35 +0000 (13:28 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Jun 2020 12:28:35 +0000 (15:28 +0300)
* 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>
site/content/docs/5.0/content/reboot.md

index 9f459e7bb276bd2148ad4fe29b9846864be4e8dc..5ba7cf087a2d1311d6c910f83bde1b8cfca5752d 100644 (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