Can't Set the Heading Level of Accordion Blocks

Jan 22, 2023

Is there a way to set that aria-role heading level in the accordion blocks?

Right now, the heading level for each topic in the accordion defaults to level 2. However, this makes it difficult to use when trying to stay 508 compliant because headings are meant to provide logical structure and match the visual presentation of content.

If I use a subheading block (Heading level 3) and place an accordion block under it (Heading level 2), to a screen reader, those topics in the accordion are no longer a part of the subheading block I placed them under. The accordion should be set to heading level 4, in this case, to show they are subtopics under the original subheading block.

In short, has anyone found a way to change the aria-heading level from level 2 to level 3 or 4 in the accordion blocks?

3 Replies
John Morgan

Hi Ashley,

Currently, there isn't a way to change the heading size for accordion blocks. The best way to possibly see a change in a feature is to submit a feature request. You can submit one here. If the request makes it onto our feature roadmap, we’ll make sure to update you in this conversation!

Thanks for reaching out!