A11y masters....help
I have an accordion element
is this the correct way to use aria-controls and aria-expanded? And then in javascript, just toggle the aria-expanded attr? The article i read said when aria-controls is set and aria-expanded="false" there will be a hidden attribute on the element it controls but im not seeing that in dev tools on #accordion-content-1
While i have you, what is the correct aria attr for close buttons? Would it be an aria controls for the parent element?
is this the correct way to use aria-controls and aria-expanded? And then in javascript, just toggle the aria-expanded attr? The article i read said when aria-controls is set and aria-expanded="false" there will be a hidden attribute on the element it controls but im not seeing that in dev tools on #accordion-content-1
While i have you, what is the correct aria attr for close buttons? Would it be an aria controls for the parent element?
