-
Notifications
You must be signed in to change notification settings - Fork 320
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
[WIP] [SPIKE] Replace header with GOV.UK One Login header #4915
Conversation
📋 StatsFile sizes
Modules
View stats and visualisations on the review app Action run for 6a97262 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
a74923e
to
d132b4b
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
0e395e0
to
623d710
Compare
I have started to look at the accessibility of the kitchen sink header. I haven't done any testing yet but have looked through the code. (I will do the testing either later today or on Wednesday and then add the results here.) As this is not production code yet, none of the below needs to necessarily be fixed before the working group review. But it would be good to make them aware of them. Language switcher
Main navigation
One Login navigation
|
My thoughts. Notwithstanding any further changes, just rather how it ended up as it is. Language switcher
Agreed. This was just a corner that was cut for the purposes of the spike. My thinking is that this will probably have to fallback to being a link for no-JS scenarios anyway, as the dropdown menu just won't work in that situation, similar to how GOV.UK's mega-menu works; but doing that also requires the service to provide a dedicated page to fall back to, which I feel very iffy about generally.
Also agree. It seems commonplace for language switcher interfaces (including virtually all of them on GOV.UK and other public service websites) to display the currently in-use language (or alternate language, in the case of toggles) rather than using explicit labelling like "Select language", so I tried to stay within that kind of wheelhouse. I considered making the screen reader text be something like "Change language. Current language: English" but was worried about that being too verbose. I also considered using iconography to make it more visually distinct, but Frontend's general 'phobia' of using icons, plus there being (in my experience) no universally accepted icon representing languages or translations meant I didn't pursue it.
Can do! I assume this is a use case for Main navigation
I omitted adding If using
We can probably do that without too much faff, sure.
This is carried over from the existing header component, which just uses "Menu". I guess if we also have the One Login menu we'd want to differentiate it from that? I wonder if the average GOV.UK user would recognise the word 'service' in that context, given the single-website perception that GOV.UK tries to give off. One Login navigation
This is carried over from the One Login header, though this is also true of the present Design System header component. Having the toggle on the right and menu items on the left seems a common enough pattern across responsive websites that I'm curious if it actually does present an issue to magnification users or is at worst an annoyance. I'm a little hesitant to change anything with that, if just that I'm not sure what 'better' would look like in this case (Move the menu dropdown to below the logo? Make the navigation items right-aligned? Use visuals to connect them together somehow?)
Also carried over from the One Login header, and also not sure what might be an improvement here. There is unfortunately not a lot of free space here on mobile screens, so any visible label longer than "One Login" isn't guaranteed to fit on those narrow viewports. Unrelatedly, I find it very weird that One Login opted to place the chevron to the left of the label here, when these are pretty much universally on the right otherwise. I'd like to know what the reasoning behind that was. |
- Wrap active links in `strong` tags so that there is a non-CSS way of indicating the currently active link. - Add `aria-current="true"` to active links. No way of setting this to `page` currently, though. Does not apply to links-as-dropdowns. - Add ability to add attributes to parent list items. Use this to add `role="region"` and `aria-label` to language dropdown examples. - Update the screen reader text for the language dropdown toggle.
|
Closing this spike as it's now served its purpose. We'll be iterating upon this concept in a new branch. |
Sorry, I know this is over 3 weeks old. I just wanted to comment on one particular thing. And doing it here (even though the PR is closed) seems to fit better than doing it elsewhere without the context.
I'm actually not too sure about the use of That means the main question is what users expect when they encounter it. I tried to search for an answer to that (3 weeks ago) and couldn't find anything. I will try to dig a bit deeper. But my assumption is that having something that is sort of the ARIA equivalent of that visual highlighting is better than having no equivalent, even if that might not be 100% correct because the actual equivalent is missing from the ARIA spec. |
This provides a base to work off.