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

Fix bottom border colour issue in the super nav search button #4642

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

hannalaakso
Copy link
Member

@hannalaakso hannalaakso commented Feb 18, 2025

What

The search button had in its default unopened state an unintended 1px dark navy bottom border. The colour change to navy was made in #2413 and the colour wasn't updated when the header design subsequently changed.

This changes the bottom border to a transparent colour, instead of removing it, so that when user changes the default colours of their browser such as in Firefox, or uses Windows High Contrast mode, the button still has a visual bottom border.

The change doesn't impact the current homepage header which continues to set its own brighter blue bottom border.

Why

The bottom dark navy border isn't part of the intended design for the search button.

Preview link

https://components-gem-pr-4642.herokuapp.com/public

Visual Changes

Before

359843018-4d0b1aa0-943b-4a8c-9ad5-d09cadaa24be

After

Screenshot 2025-02-18 at 15 05 47

Before

Screenshot 2025-02-18 at 14 54 19

After (no change)

Screenshot 2025-02-18 at 14 54 11

Firefox with user defined colours

Before

Screenshot 2025-02-18 at 15 01 26

After (no change)

Screenshot 2025-02-18 at 15 01 20

Windows High Contrast mode

Before

Screenshot 2025-02-18 at 15 02 25

After (no change)

Screenshot 2025-02-18 at 15 00 44

Fixes #4166

Trello https://trello.com/c/kw9acHlY/3312-fix-search-toggle-button-styling-in-super-navigation-menu

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 18, 2025 14:15 Inactive
@hannalaakso hannalaakso force-pushed the fix-border-in-search-button branch from 0395dc3 to 8dc8ce7 Compare February 18, 2025 14:24
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 18, 2025 14:25 Inactive
@hannalaakso hannalaakso force-pushed the fix-border-in-search-button branch from 8dc8ce7 to 185e5eb Compare February 18, 2025 14:45
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 18, 2025 14:45 Inactive
@hannalaakso hannalaakso force-pushed the fix-border-in-search-button branch from 185e5eb to f6ca1c7 Compare February 18, 2025 14:55
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 18, 2025 14:56 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 18, 2025 15:00 Inactive
@hannalaakso hannalaakso changed the title WIP fix toggle button border Fix bottom border colour issue in the super nav search button Feb 18, 2025
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 18, 2025 15:25 Inactive
@hannalaakso hannalaakso marked this pull request as ready for review February 18, 2025 15:26
Copy link
Contributor

@MartinJJones MartinJJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice work on this!, happy to approve the PR once the debug commit you mentioned is removed 👍

@hannalaakso hannalaakso force-pushed the fix-border-in-search-button branch from 88c88a6 to a693d46 Compare February 24, 2025 09:41
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 24, 2025 09:41 Inactive
This fixes the toggle button in its unhovered/unfocused state having a 1px dark navy bottom border. The colour change was made in #2413 and the colour didn't get updated when the header design subsequently changed.

Change the bottom border to have a transparent colour, instead of removing it so that when user changes the default colours of the browser such as in Firefox, or uses Windows High Contrast mode, the button still has a bottom border.

The change doesn't impact the current homepage header which continues to set its own brighter blue bottom border.
@hannalaakso hannalaakso force-pushed the fix-border-in-search-button branch from a693d46 to 10deb6a Compare February 24, 2025 10:06
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 24, 2025 10:07 Inactive
@hannalaakso hannalaakso force-pushed the fix-border-in-search-button branch from 10deb6a to bdc3d1b Compare February 24, 2025 10:14
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4642 February 24, 2025 10:14 Inactive
@hannalaakso hannalaakso merged commit 8734e43 into main Feb 24, 2025
12 checks passed
@hannalaakso hannalaakso deleted the fix-border-in-search-button branch February 24, 2025 10:29
@hannalaakso hannalaakso mentioned this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search toggle button in super navigation menu has a bottom border
3 participants