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

Set aria-label text in govuk_logo.html to "GOV.UK" #4217

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

MartinJJones
Copy link
Contributor

@MartinJJones MartinJJones commented Sep 11, 2024

What

Update the govuk_logo.html.erb template to set the arial-label attribute value to "GOV.UK" and remove support for custom values to be passed in.

Why

Help make future updates to the logo a little easier, ideally in the future we would simply be able to copy and past the required SVG code into the govuk_logo.html.erb template with no further changes required.

Trello card

Since we use the design system as of truth for the GOVUK logo, the value for the aria-label attribute should always be set to "GOV.UK", this means we can remove support for any custom values to be set other than "GOV.UK" and make future updates to the logo a little easier.
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4217 September 11, 2024 10:16 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4217 September 11, 2024 10:16 Inactive
@MartinJJones MartinJJones marked this pull request as ready for review September 11, 2024 10:29
Copy link
Member

@hannalaakso hannalaakso left a comment

Choose a reason for hiding this comment

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

Thanks Martin, this is a nice tidy up 👍

For reference, the GOV.UK Design System also hardcodes the value of this aria-label so it makes sense for us to do the same.

@MartinJJones MartinJJones merged commit 8245c95 into main Sep 12, 2024
12 checks passed
@MartinJJones MartinJJones deleted the update-govuk-logo-aria-label-text branch September 12, 2024 08:32
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