New aria-pressed support
aria-pressed
support
To improve accessibility, you need to add the aria-pressed
attribute on any button which has two distinct states, such as a switch button.
It has pretty much the same meaning as the aria-checked
attribute, but it is meant to be used on a button outside of a form, without any checkbox
or radio
role.
So now, if a trigger has the aria-pressed
attribute, its value will also change.
Behaviour improvement
Now, after clicking on a button with the data-toggle-trigger-off
attribute (an element inside a target to toggle the state of this target), the focus is given back to the trigger.
Documentation
Updates of examples, tips and explanations.