Ability to change HTML tag of nestable accordion element to <ul>

The nestable accordion element appears to be fixed as a div with no HTML tag field available to change it.

ideally I would like to tag it as an unordered list (ul) as essentially that’s what a list of accordion items is.

The items inside the accordion do have an editable HTML tag field, so they can be set to li, but this is of no use when the accordion element itself can’t be changed to a ul.

Is there a good reason why we can’t have access to an HTML tag field to change the accordion itself to a ul?

4 Likes

Same question here ! :pray:

Does someone have solution to this?

Let’s not overengineer accessibility. It’s not compulsory to put accordion items in a list.

You can check the W3C ARIA-APG Accordion Pattern Example and the US Web Design Components.

None use a list for accordions. They are treated as headings and associated sections/regions.

1 Like