-
Notifications
You must be signed in to change notification settings - Fork 332
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
Improve accordion with summary line semantics and presentation when JS loads but CSS doesn't #2327
Comments
General improvementsWe're going to mitigate against related issues raised at the accessibility clinic, see 'Next steps' #2295 (comment) for full write up. Improve the semantics of the summary in the button by adding punctuationAnother thing we should try to do is to insert a comma after the summary line in the markup. This is because we had the slightly unexpected (but very logical) feedback from the accessibility clinic that the punctuation symbol which was originally introduced to improve NVDA announcements (83c8b57 - if the link breaks with rebasing, it's the commit titled "Add pause") also improves the semantics of the button text in general by dividing up its content thematically, as demonstrated here: Next stepsI'm going to leave this issue open for now so that we can track the work to:
|
Insert a comma after the summary line in the markup, similar to the punctuation inserted after the heading. The GDS accessibility clinic gave us the feedback that the punctuation symbol which was originally introduced to improve NVDA announcements also improves the semantics of the button text in general by dividing up its content thematically. See #2327 (comment)
Insert a comma after the summary line in the markup, similar to the punctuation inserted after the heading. The GDS accessibility clinic gave us the feedback that the punctuation symbol which was originally introduced to improve NVDA announcements also improves the semantics of the button text in general by dividing up its content thematically. See #2327 (comment)
Reviewed by @vanitabarrett, moving to done. |
Insert a comma after the summary line in the markup, similar to the punctuation inserted after the heading. The GDS accessibility clinic gave us the feedback that the punctuation symbol which was originally introduced to improve NVDA announcements also improves the semantics of the button text in general by dividing up its content thematically. See #2327 (comment)
Insert a comma after the summary line in the markup, similar to the punctuation inserted after the heading. The GDS accessibility clinic gave us the feedback that the punctuation symbol which was originally introduced to improve NVDA announcements also improves the semantics of the button text in general by dividing up its content thematically. See #2327 (comment)
Insert a comma after the summary line in the markup, similar to the punctuation inserted after the heading. The GDS accessibility clinic gave us the feedback that the punctuation symbol which was originally introduced to improve NVDA announcements also improves the semantics of the button text in general by dividing up its content thematically. See #2327 (comment)
Insert a comma after the summary line in the markup, similar to the punctuation inserted after the heading. The GDS accessibility clinic gave us the feedback that the punctuation symbol which was originally introduced to improve NVDA announcements also improves the semantics of the button text in general by dividing up its content thematically. See #2327 (comment)
In addition, the decision to add the commas in was based on a previous investigation done by GOV.UK Publishing Frontend: https://accessibility.blog.gov.uk/2017/12/18/what-working-on-gov-uk-navigation-taught-us-about-accessibility/ |
What
We should consider the semantics and presentation of the accordion with the summary line if the CSS fails to load and JS doesn't. As was pointed out at the accessibility clinic, this is what a screen reader user will hear when navigating the component.
This is also unlikely to be considered a good arrangement of content:
This is related to #2336 - changing the design so that the button doesn't contain the summary line is likely to fix this issue.
If we don't change the design, the visual presentation when JS loads but CSS doesn't could be improved by not transforming the sections to buttons if CSS hasn't loaded - but this is will not help with the semantics when JS does load.
Why
We should ensure that the component follows good practise and makes sense semantically. Also, in the somewhat edge case where JS loads but CSS doesn't, the buttons end up with a large amount of content that isn't visually ordered.
Who needs to know about this
Developer, designer
Done when
The text was updated successfully, but these errors were encountered: