css-toggles icon indicating copy to clipboard operation
css-toggles copied to clipboard

Use `aria-expanded` to toggle visibility

Open jerivas opened this issue 3 years ago • 1 comments

https://github.com/oddbird/css-toggles/issues/10#issuecomment-1105571312

jerivas avatar Apr 21 '22 22:04 jerivas

this would be what I'd expect for the "Accordion/disclosure components" examples.

And would likely be the expected property to expose for a variety (but not all) popups.

Additionally, similar to what I mention in issue #20, applying the roles directly to the current elements (re: overwriting their implicit ARIA semantics with button roles) negates the underlying structural semantics of these elements.

However, aria-expanded would not be expected for say an ARIA tab widget, where a tab role and aria-selected are the expectations for the roles and indicating which tab represents the currently available tabpanel.

scottaohara avatar May 07 '22 21:05 scottaohara