-
Notifications
You must be signed in to change notification settings - Fork 24
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
BREAKING: Remove title component #4653
Merged
Merged
+58
−277
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8a627ca
to
be18c38
Compare
be18c38
to
aef7cda
Compare
aef7cda
to
d58d9d7
Compare
d58d9d7
to
de66091
Compare
de66091
to
19513cf
Compare
andysellick
approved these changes
Feb 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple of minor things, but happy to approve and let you sort them out 👍
- Removes the title component, as we now use the heading component where titles are needed. - Also replaces gem-c-title references with gem-c-heading in the inverse_header and select component - Also replaces references to the title component in spec files so that tests pass
19513cf
to
3dfb20e
Compare
Merged
kevindew
added a commit
to alphagov/govuk-chat
that referenced
this pull request
Feb 26, 2025
The title component has been removed from govuk_publishing_components [1] and thus we need to replace it. The heading component with an xl font-size is functionally equivalent. I applied this by using Ashley's example [2], however I omitted setting a margin_bottom of 8 as that matches the margin already added to `govuk-heading-xl` and rendered identically. [1]: alphagov/govuk_publishing_components#4653 [2]: https://github.com/alphagov/collections/pull/3963/files
kevindew
added a commit
to alphagov/govuk-chat
that referenced
this pull request
Feb 26, 2025
The title component has been removed from govuk_publishing_components [1] and thus we need to replace it. The heading component with an xl font-size is functionally equivalent. I applied this by using Ashley's example [2], however I omitted setting a margin_bottom of 8 as that matches the margin already added to `govuk-heading-xl` and rendered identically. In updating the tests I've switched from using a class based selector to using element, h1. I've done this because it seems more semantic to match on the element name since we only expect one h1 per response and don't really mind what class it is in request tests. [1]: alphagov/govuk_publishing_components#4653 [2]: https://github.com/alphagov/collections/pull/3963/files
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What / Why
title
component, as we are now using theheading
component to provide titles for pages.govuk-chat
and DGU, butgovuk-chat
is being looked at, and DGU is already very far behind on the gem.Visual Changes
The inverse header component examples have changed as they now use the
heading
component which has slightly different spacing - I did use thepadding: true
option to try and make them visually similar to how the previous examples looked but I don't think there's a need to make them look exactly the same, as they're just examples of how the component can look instead of how it should look.