aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2020-06-17 13:28:35 +0100
committerGitHub <[email protected]>2020-06-17 15:28:35 +0300
commit5ad43fec83c6cb4bd2381c02e3903ad1a5eda0db (patch)
tree44e9c0f9d4cf5af4be88d5ac066a891f26f8e932
parent8efe4aa9af12abd62e28f7b4e1aa4f7fda0170ac (diff)
downloadbootstrap-5ad43fec83c6cb4bd2381c02e3903ad1a5eda0db.tar.xz
bootstrap-5ad43fec83c6cb4bd2381c02e3903ad1a5eda0db.zip
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 <[email protected]>
-rw-r--r--site/content/docs/5.0/content/reboot.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/site/content/docs/5.0/content/reboot.md b/site/content/docs/5.0/content/reboot.md
index 9f459e7bb..5ba7cf087 100644
--- a/site/content/docs/5.0/content/reboot.md
+++ b/site/content/docs/5.0/content/reboot.md
@@ -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