-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Iterate accordion component #1379
Comments
The accordion component design has potential cross over with other components and patternsReleasedIn the Community backlog
Other service components
|
Summary of chat with GOV.UK
Next steps:
|
Notes from accordion backlog discussion
|
Examples of the accordion component across pages and services
|
Details and accordionsIn theory, details and accordions are very similar – they both conceal additional content under a 'heading' that users can interact with to see more. Just summarising some conversations we've recently had about each. Question 1: could we use
|
Design updateWe've been working with GOV.UK on iterating the visual design of the accordion to fix some accessibiltiy issues we've found. For reasons outlined earlier in this issue, we're aiming for something that:
For context, here's the GOV.UK step-by-step as it currently works. The headings are buttons, and include some visually hidden spans so that screen readers read them as 'Do a thing, show this section'. The show/hide controls probably still look too much like links, albeit the words 'show' and 'hide' may suggest less that they might link to another page. I've added a few screenshots below of us starting with the secondary button style and gradually developing them towards something that could work as accordions. There's also a big Figma file with many more design explorations. Secondary buttons: Next stepsI've created a first draft on this branch of Frontend. Have a look at a preview on my design system mess prototype (username:design password:mess). We'll be testing it in user research in the coming weeks... will add a summary of any findings here 👍 |
Very much like the direction this is headed – as well as the motivations behind it. At first I wasn’t too sure about the disclosure icon being inside a circle. Circles are not something that appear too often on GOV.UK. That said, the crown logo features circles, and tittles and punctuation marks in Transport are circular too, so it doesn’t feel at odds with anything – in fact it offers some much needed visual contrast. Will be interested to see where this heads! |
One downside of this design as it is might be that each section is a lot taller, at 116px vs 61px for the current design, which might make it harder to scan and compare, as you can see fewer sections at once. |
What
Iterate accordion component to be more accessible and consistent with how GOV.UK are doing step-by-steps.
We should also consider the details component which behaves in a very similar way.
The output of this stage of the work should probably be to have a prototype to test in user research.
Why
Who needs to know about this
Further detail
Done when
The text was updated successfully, but these errors were encountered: