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 missing label and legend classes to HTML fixtures #2659

Merged
merged 5 commits into from
Jun 14, 2022

Conversation

vanitabarrett
Copy link
Contributor

@vanitabarrett vanitabarrett commented Jun 13, 2022

Recreating the changes originally raised in #2612 by @matthew-shaw (original PR was proving difficult to rebase)

Some of the test fixture macros were missing the additional classes for labels and legends as page headings, where isPageHeading had been set to true. This PR adds them in to the macro options, along with the expected HTML output.

In terms of the tests themselves this should have no impact, they will pass with or without as the output matches the expected HTML. But for projects that have ported GOV.UK Frontend to other languages and templating engines such as GOV.UK Frontend Jinja and GOV.UK React JSX, these fixtures are also used for visual component demos as well, so the classes obviously affect the rendered output.

Examples of user facing demos where headings aren't rendered correctly due to missing classes in test fixtures:

Relevant conversation about this change

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2659 June 13, 2022 15:52 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2659 June 13, 2022 16:01 Inactive
@vanitabarrett vanitabarrett requested a review from a team June 13, 2022 16:08
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2659 June 13, 2022 16:08 Inactive
@vanitabarrett vanitabarrett marked this pull request as ready for review June 14, 2022 10:10
Copy link
Contributor

@domoscargin domoscargin 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!

@vanitabarrett vanitabarrett changed the title Add missing label and legend classes to review app examples Add missing label and legend classes to HTML fixtures Jun 14, 2022
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-2659 June 14, 2022 10:20 Inactive
@vanitabarrett vanitabarrett merged commit d1b24d7 into main Jun 14, 2022
@vanitabarrett vanitabarrett deleted the add-label-classes branch June 14, 2022 10:29
@vanitabarrett vanitabarrett modified the milestones: v4.1.1, v4.2.0 Jun 14, 2022
@domoscargin domoscargin mentioned this pull request Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

3 participants