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 default font for component guide #4330

Conversation

unoduetre
Copy link
Contributor

@unoduetre unoduetre commented Oct 23, 2024

What

Some components do not set their default font, so they do not look right when presented in the component guide, as the component guide does not set the font either. This change fixes this problem by setting the default GDS Transport font for the components guide. By setting it, how the components look in the guide should better reflect how they look in pages, as pages also set the same default font.

This change is only related to component guides and how components look there.

Why

This change was is a way to fix the issues described in this Trello card

Visual Changes

Before

Inverse header preview page:

Screenshot 2024-10-23 at 12-29-51 Inverse header With paragraph and link preview - Component Guide

In government-frontend's component guide:

Screenshot 2024-10-23 at 11-58-15 Important metadata component - Government Frontend Component Guide

After

Inverse header preview page:

Screenshot 2024-10-23 at 12-30-04 Inverse header With paragraph and link preview - Component Guide

In government-frontend's component guide:

Screenshot 2024-10-23 at 11-58-49 Important metadata component - Government Frontend Component Guide

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4330 October 23, 2024 10:56 Inactive
@unoduetre unoduetre marked this pull request as ready for review October 23, 2024 13:47
@unoduetre unoduetre force-pushed the 2949-the-government-frontend-component-guide-app-examples-dont-have-a-font-set branch from e784874 to ec57cbb Compare October 24, 2024 11:15
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4330 October 24, 2024 11:15 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4330 October 25, 2024 10:33 Inactive
@unoduetre unoduetre force-pushed the 2949-the-government-frontend-component-guide-app-examples-dont-have-a-font-set branch from 9354c69 to fc61f4e Compare October 25, 2024 10:35
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4330 October 25, 2024 10:35 Inactive
@unoduetre unoduetre merged commit a9544e5 into main Oct 25, 2024
12 checks passed
@unoduetre unoduetre deleted the 2949-the-government-frontend-component-guide-app-examples-dont-have-a-font-set branch October 25, 2024 10:38
@AshGDS AshGDS mentioned this pull request Oct 25, 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.

4 participants