mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-22 21:22:52 +02:00
v5: Add role=button cursor in Reboot (#31040)
* v5: Add role=button cursor in Reboot Ports the changes from #30562 made in v4.5 and adds them to v5. This replaces #30563 which sought to add this to the utility API, but the v4 PR shifted to implement an accessible solution vs a lone utility. * Update reboot.md Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -370,6 +370,15 @@ These changes, and more, are demonstrated below.
|
||||
{{< partial "callout-warning-input-support.md" >}}
|
||||
{{< /callout >}}
|
||||
|
||||
### 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.
|
||||
|
||||
{% capture example %}
|
||||
<span role="button">Non-button element button</span>
|
||||
{% endcapture %}
|
||||
{% include example.html content=example %}
|
||||
|
||||
## Misc elements
|
||||
|
||||
### Address
|
||||
|
Reference in New Issue
Block a user