Replies: 13 comments 8 replies
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
|
Accordions break visually if using it without show/hide buttons. I have removed one as an example. |
Beta Was this translation helpful? Give feedback.
-
|
A visual improvement would be to indent the content, so visually it aligns to the heading. An indent of 27px or 1.5rem on the content would achieve this. CurrentlySuggested |
Beta Was this translation helpful? Give feedback.
-
|
I have attempted to use this in my Flask app but this component unfortunately does not work in Jinja2 (3.0.3):
|
Beta Was this translation helpful? Give feedback.
-
|
Accordion collapsibles of the simple variant are not in the tab order |
Beta Was this translation helpful? Give feedback.
-
|
UR findings on accordions -
|
Beta Was this translation helpful? Give feedback.
-
Accordion Aria Labels For Button TextCurrently, if we have more than one accordion component on the page with the same button text for opening and closing the accordion component, there will be accessibility issues: If we have more than one accordion component, both with a
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for raising this. The Accordion component already includes an attributes parameter, which can be used to pass in additional HTML attributes for the button. For example: This way, you can give each accordion’s button a unique aria-label (or other identifying attributes) to help screen readers distinguish between multiple accordions on the same page. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the response. This is really helpful, Precious. Maybe some additional guidance on this or an example in the Accordion Macro Options Table will be helpful, as accessibility is an important aspect that could be explicit here. I do have some concerns with this approach, as it partly solves the problem, and there are still some gaps: This does not clarify to the user whether their action will show or hide. They would need to work out using the combination of the |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, @sanjeevz3009. That’s a good point about the current approach still not making it clear whether the button will show or hide the content. We’ll raise a ticket to look into this and find a clearer solution. I’ll let you know once it is done. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Use this place to discuss the Accordion component in the ONS Design System
Beta Was this translation helpful? Give feedback.
All reactions