Skip to content
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

Header #97

Open
govuk-design-system opened this issue Jan 15, 2018 · 36 comments
Open

Header #97

govuk-design-system opened this issue Jan 15, 2018 · 36 comments
Assignees
Labels
component Goes in the 'Components' section of the Design System

Comments

@govuk-design-system
Copy link
Collaborator

govuk-design-system commented Jan 15, 2018

Use this issue to discuss the header component in the GOV.UK Design System.

What

Header for GOV.UK, including full-width, departmental, internal and service variants.

Why

Site headers are used on all web pages. There's also a need for consistent headers for departmental and internal services.

Anything else

Related patterns

@govuk-design-system govuk-design-system created this issue from a note in GOV.UK Design System Community Backlog (Agreed) Jan 15, 2018
@penx penx mentioned this issue May 2, 2018
@timpaul timpaul added the component Goes in the 'Components' section of the Design System label May 21, 2018
@pds2208

This comment has been minimized.

@kr8n3r

This comment has been minimized.

@NickColley

This comment has been minimized.

@pds2208

This comment has been minimized.

@kr8n3r

This comment has been minimized.

@pds2208

This comment has been minimized.

@dashouse

This comment has been minimized.

@pds2208

This comment has been minimized.

@NickColley

This comment has been minimized.

@pds2208

This comment has been minimized.

@hannalaakso
Copy link
Member

hannalaakso commented Sep 3, 2018

Capturing alphagov/govuk-frontend#972 here - the extra space in the header on certain tablet breakpoint is something we should explore fixing but there is no straightforward way to do this because:

  • it's possible that we should be recommending services to have the "GOV.UK" text as part of the service name as in the Design System header (linking to https://www.gov.uk/ from a service domain might not be helpful to users)
  • many services have search and various navigation in the header

@lfdebrux
Copy link
Member

It's a small thing, but we (Digital Marketplace) just noticed that the header example in Design System is slightly different to the header used for the Design System; the service name ("Design System" in this case) is in a different place.

In the header used, the service name is right next to the GOV.UK badge, and a lighter font. In the example header, the service name is in the middle of the header, and in a bold font.

As there isn't any specific guidance on where the service name should be in the header does mean that the example is not definitive?

@stevenaproctor
Copy link

stevenaproctor commented Oct 30, 2018

Many HMRC services do not use the navigation but do have a 'Sign out' link on the right hand side of the header.

Desktop
image

Mobile
image

This would be a good thing to include in the documentation and code, assuming this would help other government departments too.

This could also be part of #95.

@dashouse
Copy link

@lfdebrux Hi Laurence, apologies for the the delay in responding to this.

The header in the Design System is to be used by services. The service name is in bold, centred within the header and has independent links to both the first page of the service and the GOV.UK home page

screen shot 2018-10-30 at 14 08 59

The header used by the Design System is the header designed for GOV.UK products. It's currently in use on GOV.UK Service Manual, GOV.UK Service Toolkit, GOV.UK Notify, GOV.UK Pay, GOV.UK Verify, GOV.UK PaaS and Registers product pages. This has the product name directly next to GOV.UK and they are grouped together as one link that takes you to the product home page.

screen shot 2018-10-30 at 14 09 10

This design was initiated for the Government as a Platform products just under two years ago. It might be that it would be the better option for Digital Marketplace too.

@murfious
Copy link

screen shot 2018-10-30 at 14 13 15

It would be great to have some padding between the ‘Menu’ link and the service name on the header seen on small screens. Having them butt up so close I think reduces readability.

@dashouse
Copy link

dashouse commented Oct 30, 2018

@murfious

screen shot 2018-10-30 at 14 13 15

It would be great to have some padding between the ‘Menu’ link and the service name on the header seen on small screens. Having them butt up so close I think reduces readability.

I think this might be the design from one of the old codebases. The current version in GOV.UK Frontend / Design System has the Menu button on the same line as GOV.UK, not the service name for this reason

screen shot 2018-10-30 at 14 18 42

@timpaul timpaul moved this from To do to In progress in GOV.UK Design System Community Backlog Jan 15, 2019
@timpaul timpaul moved this from In progress to Published in GOV.UK Design System Community Backlog Jan 15, 2019
@edwardhorsford
Copy link

The header currently collapses nav links in to a menu on mobile (which is very nice) - but for my service the breakpoint it collapses at is var larger than necessary - our tablet users could get our full nav but right now they're not.

It looks like the breakpoint is defined here. Would it be possible to allow this width to be overridden?

@timpaul
Copy link
Contributor

timpaul commented Jun 5, 2019

@DavidMcClelland-ux
Copy link

On reviewing the header https://design-system.service.gov.uk/components/header/default/index.html# in NVDA for Windows the png is declared as "Unlabelled graphic" (text from NVDA text viewer below)

Header – Example – GOV.UK Design System document
visited link
Unlabelled graphic
To get missing image descriptions, open the context menu.

GOV.UK

To make NVDA ignore the tag I'd suggest giving the a role="presentation" too as the same role attribute in the tag doesn't seem to carry through.

@ghost
Copy link

ghost commented Nov 12, 2019

Would it be possible in a future update the ability to change the SVG of the crown? At CH we don't use the crown for our services and there is no simple way to swap it out using Nunjucks

@36degrees
Copy link
Contributor

On reviewing the header https://design-system.service.gov.uk/components/header/default/index.html# in NVDA for Windows the png is declared as "Unlabelled graphic" (text from NVDA text viewer below)

Header – Example – GOV.UK Design System document
visited link
Unlabelled graphic
To get missing image descriptions, open the context menu.
GOV.UK

To make NVDA ignore the tag I'd suggest giving the a role="presentation" too as the same role attribute in the tag doesn't seem to carry through.

@DavidMcClelland-uxm thanks for flagging this – I've raised an issue over in the GOV.UK Frontend repo to track this. If you want to stay updated, you can subscribe to notifications for the issue.

@36degrees
Copy link
Contributor

Would it be possible in a future update the ability to change the SVG of the crown? At CH we don't use the crown for our services and there is no simple way to swap it out using Nunjucks

@mgearon-ch I've raised an issue over in the GOV.UK Frontend repo to track this. If you want to stay updated, you can subscribe to notifications for the issue.

@edwardhorsford
Copy link

Sharing an example of how my service's header looks:
Screenshot 2020-01-14 at 15 37 15

This is adapted from the HMCTS header with primary navigation combined with the Design System header pattern.

Implementation details:

  • The header is persistent across all pages when signed in.
  • When you're within one of the main site areas (cases / businesses / products / your team) we highlight that as the active category
  • If you're in another area (T&Cs, guidance, etc), we don't highlight a category.
  • They all collapse in to a single menu on mobile.
  • We're using the 'product name' option of the existing header as our service has a noun based name not verb based name.
  • Following HMCTS' example, we use a white bar to indicate the active category, not change in text colour.

Overall I'd say this has tested very well. Our users seem to be able to use it well. Have not tested the mobile implementation (our user base does not tend to use mobiles) and I am wary of the collapsing.

Our previous nav looked like this:
Screenshot 2020-01-14 at 15 42 54

This nav was not persistent and was only shown when on a top level page. It was using the HMCTS Sub navigation pattern.

We previously relied heavily on back links and breadcrumbs for navigation. However some pages in our service could be very nested, making it very awkward to move between cases. The the revised header with persistent nav has made escaping much easier.

I was initially hesitant to include the nav links within the black bar vs outside of them. However we plan to have secondary nav outside of the black bar related to individual cases. In this case it makes sense for the black bar to be 'global things' and stuff below it to be related to the case you're on.

Mobile closed:
Screenshot 2020-01-14 at 15 49 02

Mobile open:
Screenshot 2020-01-14 at 15 49 30

@jOnoNe
Copy link

jOnoNe commented Mar 10, 2020

During a signup journey (logged-out user state), the service name in the "Header with service name" component is clickable and by default returns the user to the start of the signup journey and clears their entered signup data. Our team are interested in what scenarios would this behaviour would be useful for the user?

@jeanesims
Copy link

This is an example (below) of how the header looks in our service.

image

The first iteration did not have any navigation.

User research showed users needed navigation so a later iteration (below) had navigation links in the black header. Unfortunately, we found that users did not see the links there.

image

We looked at other services including the Agent services account (many of our users are agents) and integrated an existing design with the navigation below the black header.

Implementation details:

  • the header is consistent across all pages
  • when you're within one of the sections it is highlighted as an active category

Users have found this iteration much easier to use and it has tested well.

@edwardhorsford
Copy link

It would be good if the menu collapsing could be disabled / smarter. My service has a single item in that bit of the header, so collapsing it just puts it a further click away. I wonder if it could not collapse if there's just a single item. I'd guess we can probably hack the html to do it in the short term.

Desktop:
Screenshot 2021-02-08 at 12 20 41

Mobile:
Screenshot 2021-02-08 at 12 20 51
Screenshot 2021-02-08 at 12 20 56

@hopebristow
Copy link

I just wanted to add to this discussion to say that we also have found that users often do not see this header navigation on our service. We are working on the "Drive in a Clean Air Zone" service and we used this pattern whilst designing our check multiple vehicles service which is for business users to create an account. During our beta research found we found around 35% of a sample of 115 users did not see the navigation at all and this has been a recurring finding in just over a years worth of research. We have recently been testing a pattern with the navigation below the black header similar to HMRC's personal tax account header and have found this to be much more successful with our users. Although this does seem to be presenting us with some challenges for implementation for a mobile with JavaScript turned off.

@henocookie
Copy link

Hello! As part of discussions for the header component in the NHS digital service manual community backlog, it appears the examples and guidance for the GOV.UK Design System header component may be out of date when compared with the latest header which is live on GOV.UK

@vanitabarrett
Copy link

Hi @henocookie 👋 The header on the GOV.UK website (www.gov.uk) is different to what's in the GOV.UK Design System. At the moment we don't have plans to update the header in the Design System as the navigation links exposed in the GOV.UK header are there to expose GOV.UKs information architecture to users and that's not necessarily useful information to those completing services. Services often have their own navigational elements (log in/out) etc which that design doesn't account for.

@terrysimpson99
Copy link

For info. The service for 'Tax free childcare' has 'Sign out' on the right but below the header.
image

I don't know why that design was chosen. I'm showing it here just for information, not as a recommendation.

@FeyAgape
Copy link

productName | string | Product name, used when the product name follows on directly from ‘GOV.UK’. For example, GOV.UK Pay or GOV.UK Design System. In most circumstances, you should use serviceName.

Just wondering if the font weight actually offer any value to users and if testing was documented anywhere?

@CharlotteDowns
Copy link

We ran an external accessibility audit for some of the components and patterns in GOV.UK Frontend in May 2023. In that audit, we included an example of the Header component. We’re adding results from that audit here so that we can:

  • document, discuss and address the findings
  • inform future contributors of the findings

One usability issue raised

''Show or hide menu' label is redundant since we use 'aria-expanded'. Change label to just 'Menu'

The menu button has been provided with an ‘aria-label’ adding the phrase ‘show or hide’ to the accessible name. However, as the ‘aria-expanded’ already conveys the functionality and current state, the show or hide text may add some confusion.

More detail in this issue:

@frankieroberto
Copy link

We have recently added a navigation bar to our service, and as part of this, we moved the "Sign out" link from the service navigation menu in the GOVUK header to the new navigation bar.

One of the advantages to this is that it means we can drop the "Menu" toggle in the GOVUK header, which currently appears on mobile.

Here’s the new design:

Screenshot showing a bar with a black background, and just the crown, ’GOV.UK' and 'Apply for teacher training' in white text. Beneath that is a bar with a grey background. On the left is a link in blue text with a blue border beneath labelled 'Your applications'. On the right is blue text labelled 'Sign out'

@36degrees
Copy link
Contributor

@frankieroberto would you mind adding this as a comment to our discussion about navigation too?

@mattia-gobbo
Copy link

Screenshot 2023-09-13 at 17 45 34 Screenshot 2023-09-13 at 17 44 16 For 'Send an SR1 medical evidence form', the 'Header with service name and navigation' was tested with 50 users using different devices over 6 rounds of testing to understand user experience of navigating SREL journey whilst completing a set task in which they were asked to navigate into other pages. The component has consistently failed in user testing as users across the digital familiarity scale have struggled to find those pages (listed as nav item in the header). Research has shown that, as the nav bar is embed into the header and there is no clear distinction between them (the title of the service and the nav items have the same font color and background color) users struggle to find the navigation, the header is hidden on scroll - potentially a sticky navbar would work better.

We've tested an header with a different layout (second image) and this performed better as items were more visible to users and better aligned.

@frankieroberto
Copy link

@mattia-gobbo thanks for sharing! This research finding matches research that previous teams have done too (as in thread above).

You might also want to look at the proposed future header for GOV.UK services using One Login, which has the sign out link in the black bar, but the service name and navigation in a separate grey bar below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component Goes in the 'Components' section of the Design System
Development

No branches or pull requests