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

Add the hidden attribute to mobile menu button #3975

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

MartinJJones
Copy link
Contributor

@MartinJJones MartinJJones commented Apr 9, 2024

What

Add the hidden attribute to the mobile menu button in the layout_header component

Why

In preparation for upgrading to version 5 of govuk-frontend.

Adding the hidden attribute to the mobile menu button was a recommend change in the release of 4.3 of govuk-frontend - https://github.com/alphagov/govuk-frontend/releases/tag/v4.3.0

In version 5 of govuk-frontend, the hidden attribute is required to ensure that the menu button remains hidden when JavaScript is disabled:

Trello card

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3975 April 9, 2024 11:44 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3975 April 9, 2024 11:53 Inactive
@MartinJJones MartinJJones force-pushed the add-hidden-attribute-to-mobile-menu-button branch from ce9cfc7 to 5d80fd8 Compare April 11, 2024 09:45
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3975 April 11, 2024 09:45 Inactive
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

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

Looks good. I'd squash all the commits together as they're directly related.

- Add the hidden attribute to mobile menu button
- Update the layout header spec to check for the presence of the hidden attribute on the mobile menu button
- Update CHANGELOG.md
@MartinJJones MartinJJones force-pushed the add-hidden-attribute-to-mobile-menu-button branch from 5d80fd8 to 27b9003 Compare April 11, 2024 15:21
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3975 April 11, 2024 15:21 Inactive
@MartinJJones MartinJJones merged commit cab950b into main Apr 11, 2024
13 checks passed
@MartinJJones MartinJJones deleted the add-hidden-attribute-to-mobile-menu-button branch April 11, 2024 15:29
@matthillco matthillco mentioned this pull request Apr 22, 2024
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.

3 participants