govuk-one-login / service-header

A header for services using GOV.UK One Login
https://govuk-one-login.github.io/service-header/
6 stars 4 forks source link

Consider making target area taller for service navigation links #2

Closed frankieroberto closed 1 year ago

frankieroberto commented 1 year ago

Hi team!

At the moment, the target area for the service navigation links is just 17px high:

Screenshot 2023-05-17 at 12 36 45

I think we could improve the usability by making the target area the full height of the bar, including the border - which would make it 60px high:

Screenshot 2023-05-17 at 12 38 28

As well as larger target areas generally being good for usability and accessibility, I suspect that the present of the blue border at the bottom will lead users to expect the target area to be bigger here.

One consequence of this will be the focus style. At the moment, the focused links get a yellow background, black text and a black underline. This leads to a double underline + border when the active link is focused:

Screenshot 2023-05-17 at 12 41 26

If the target area was made taller, then the black underline on focus could replace the blue border (for active links):

Screenshot 2023-05-17 at 12 42 03

Some of the existing services from Department of Education already use a version of this navigation bar (with the taller target areas) in production, like this (showing both an active and focused link):

Screenshot 2023-05-17 at 12 43 10

I don't think we have any specific research on this, but the design has been in production for a while, and I don’t think any issues have been observed in usability research sessions..

benjamin-mortimer commented 1 year ago

Hi Frankie,

Thanks for raising this issue. We'll take a look at this and get back to you after our next planning session (23 May 2023).

All best,

Ben

benjamin-mortimer commented 1 year ago

Hi Frankie, apologies for taking longer to get back to you than I originally promised.

We've added this to our backlog and will start working on it soon. I'll keep you updated here with our progress.

Many thanks for raising this - it's a really valuable improvement.

Ben

frankieroberto commented 1 year ago

@benjamin-mortimer thanks – look forward to seeing this improvement! 😄

danacotoran commented 1 year ago

Closed by https://github.com/alphagov/di-govuk-one-login-service-header/pull/8