

If your control element is targeting a single collapsible element – i.e.

If the control element’s HTML element is not a button (e.g., an or ), the attribute role="button" should be added to the element. The plugin will automatically toggle this attribute on the control based on whether or not the collapsible element has been opened or closed (via JavaScript, or because the user triggered another control element also tied to the same collapsbile element).

If you’ve set the collapsible element to be open by default using the show class, set aria-expanded="true" on the control instead. If the collapsible element is closed by default, the attribute on the control element should have a value of aria-expanded="false". This attribute explicitly conveys the current state of the collapsible element tied to the control to screen readers and similar assistive technologies. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.īe sure to add aria-expanded to the control element. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Food truck quinoa nesciunt laborum eiusmod. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Using the card component, you can extend the default collapse behavior to create an accordion.Īnim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Toggle first element Toggle second element Toggle both elements Īnim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.
