ARIA Attributes (Reference)
It is "is a good solution for many situations where an element's visibility should can be toggled". If the element creates some kind of disclosure based on a trigger, use
aria-expanded. This can be used in conjunction with
aria-haspopup, but isn't really necessary.
- Marking elements expandable using aria-expanded - ADG
Last modified: 202309132252