ministryofjustice / moj-design-system-backlog

MOJ Design System Community Backlog
https://moj-design-system.herokuapp.com/
9 stars 3 forks source link

Header with primary navigation, global search, sign out, account navigation. #29

Open gavinwye opened 5 years ago

gavinwye commented 5 years ago

The header for HMPPS staff facing services.

This is a version of the services header from GOV.UK used in Notify and Verify

Screenshot 2019-03-28 12 44 24

Elements used in the header:

Switcher is part of another component.

adamsilver commented 5 years ago

All done except for the crest. Issue in frontend here: https://github.com/ministryofjustice/mojdt-frontend/issues/17

jkosem commented 5 years ago

What about the search?

adamsilver commented 5 years ago

What about the search?

See examples here: https://moj-design-system.herokuapp.com/components/primary-navigation

EveBayram commented 5 years ago

The MOiC HMPPS service is using this header. Our team have found some confusion with the links coming from the HMPPS logo and the Service name. Feeding back here:

We have the HMPPS logo linking to a service selection page (HMPPS Digital Services), and the Service name linking to our service homepage.

Screen Shot 2019-08-06 at 11 58 52

Having two different links going to different places seems confusing for users.

The alignment of the service name towards the left brings it alongside the HMPPS logo, which makes it look like a single component (and therefore a single link). If you compare this to the GOV header with Service name there is a wider visual gap so it is less confusing to have two separate links.

Andy-Millar commented 5 years ago

Would really like to avoid the current options for the selected state for the nav item. I've currently seen the following for the selected item:

Would be good to work on an alternative solution for the selected state, however we are limited with this version of the primary nav (black background, white links)

adamsilver commented 5 years ago

I think we should put an underline (but not border) on the selected (or unselected) state.

Andy-Millar commented 5 years ago

I thought of similar, but it's a bit too subtle, and looks quite odd with the blue line at the bottom of the header. Here it is with and without the blue line...

Screen Shot 2019-08-09 at 10 37 14 Screen Shot 2019-08-09 at 10 37 22

Blue line underneath would defo clash with the header blue line

Andy-Millar commented 5 years ago

Do we have alternatives to the black primary nav that we can use?

I suppose we just use the exact same styling in the design system for now (blue for selected)

Screen Shot 2019-08-09 at 10 41 41
MalcolmVonMoJ commented 5 years ago

Another pattern I have seen used is this.
(In spite of the ALPHA tag, it is a live service and has been for a couple of years now, this is a screenshot from my account.) image

MalcolmVonMoJ commented 5 years ago

Also, two versions of the header as used on legalservices.gov.uk. Uploaded mainly to show the department and logo rather than the navigation. The LAA version also has blue-on-black navigation in some places, identical with the GDS design system.

image

MalcolmVonMoJ commented 5 years ago

I asked GDS on their Design System channel. They seem happy with the blue on black. Like you, I think it might be difficult to read, but the contrast is sufficient for AA and even AAA in large text - which I guess it will always be.

Do we have research that indicates that this is insufficient or is it a hunch? If the former, we could contribute to their github ticket on alphagov: govuk-frontend/issues/1133.

image

Andy-Millar commented 5 years ago

It's more of a hunch that has been expressed by several team members. This was more with the previous blue being used - the new version does improve contrast. I'd also say that best practice would suggest that differentiating by colour alone is perhaps not the best approach.

In terms of flexibility, the black nav causes an issue if we want to display the location switcher above the primary nav - above and below examples shown below... 02B

Using the same nav that has been used in the design system (as an example) provides a lot more flexibility (above and below shown below...) 01A

I am going to bring several examples to the next working group meeting, and we can all discuss options and agree a way to proceed.

MalcolmVonMoJ commented 5 years ago

The other option we have regarding the header on non-gov.uk domains is the colour bar. Other services occasionally choose to use their departmental colour. MoJ's colour is #5a5c92. I've not seen this used anywhere.

Also, as can be seen here, a 404 (or other) error can change the colour bar to red (#df3034). CCMS does this - although it probably still uses #B10E1E (old error red).

gavinwye commented 5 years ago

Figma file with variations and header exploration

https://www.figma.com/file/bYN8ZmgzkU5dvUcEUOFTGEaR/Departmental-Headers?node-id=0%3A1