-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sections: Show hide buttons #65
Comments
Note #73 adds some more show/hide options |
The current collapsible / accordion UX is probably best, but the button needs to reflect the state of the list, i.e. whether it's currently collapsed or expanded. Having different states for different numbers of errors seems likely to be cognitively inaccessible, as users will expect consistency, so I'd probably vote in favour of all errors being collapsed by default. The button would need to be redesigned to represent 'more details' rather than 'show/hide errors', so it's more obvious that each button (and expanded section) is related to the error. The most intuitive design would likely be to either use a chevron icon (v / ^), or an error icon ( ! ), alongside the number of errors hidden. This would let the user know what to expect before expanding a (potentially long) table. |
Thanks, @codemacabre. Your proposed approach sounds good to me. My preference is to use chevrons, since the whole table is about errors anyway. Happy for you to go ahead and make a PR. |
Just realised we're using Bootstrap 3, so my initial idea of using chevrons built into the accordion heading (like https://getbootstrap.com/docs/5.2/components/accordion/) isn't possible without a fair bit of refactoring. Plus, nested accordions within the 'Structure and Format' accordion might be too busy, so perhaps the best and simplest alternative is to use chevrons in self-contained buttons, as in the screenshot below: My concern is that this makes it a little tricky to see which heading the button relates to. If we're happy with this, I have a PR ready. If we want something a bit more accordion-heading-like, it'll need a bit longer. Thoughts @duncandewhurst @odscjames? |
@codemacabre your proposed approach sounds good to me, thanks! Happy for you to go ahead and review the PR @odscjames |
Reopening - this has now been applied to one section, but there are other places we should apply this to later. |
The changes look good. Thanks!
Could we add some other visual element to distinguish between the results for each check, like a horizontal rule or some kind of container around the check title, description and results?
Yes, please can we add this to the additional check results, too. |
Moving to a new issue as currently this is being discussed in 2 places and a solution here should apply across the page.
From:
From one:
From the other:
This is slightly inconsistent; a bit of definition work is needed here to agree a common approach.
Currently this applies to Validation & Additional sections - there are other sections this might apply to later to, like the errors section in #30 (comment)
The text was updated successfully, but these errors were encountered: