Unverified Commit 5ad43fec authored by Patrick H. Lauke's avatar Patrick H. Lauke Committed by GitHub
Browse files

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: default avatarXhmikosR <xhmikosr@gmail.com>
parent 8efe4aa9
1 merge request!31948Examples/Floating-labels: fix bad behavior with autofill
Showing with 4 additions and 5 deletions
+4 -5
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment