aria-pressed

Good evening,
I have a question about aria-pressed attribute:
Expand all and Collapse all buttons are used to control a set of accordions
state.
When the Expand all button is selected then all accordions are expanded,
similarly, if the collapse all button is selected then all accordions will
be collapsed.
The two buttons are contained inside an element with role="group".
Is it fine to use an aria-pressed attribute on the expand all and collapse
all button and adding aria-disabled attribute on the button that is in a
pressed state?

[image: image.png]

Thank you all for your help.!!

Received on Saturday, 6 February 2021 01:36:28 UTC