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 component wrapper helper to the header #4385

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

AshGDS
Copy link
Contributor

@AshGDS AshGDS commented Nov 11, 2024

What

  • Adds the component wrapper helper to the layout_header component.

Why

As the trello card states:

Standardising our components to use the component wrapper helper will reduce code, increase standardisation, and improve future feature implementation speed.

Visual changes

None.

@AshGDS AshGDS self-assigned this Nov 11, 2024
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4385 November 11, 2024 11:41 Inactive
@AshGDS AshGDS force-pushed the layout-header-component-wrapper branch from 33694aa to ad9d1ba Compare November 11, 2024 11:43
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4385 November 11, 2024 11:43 Inactive
@AshGDS AshGDS marked this pull request as ready for review November 11, 2024 12:36
@AshGDS AshGDS requested a review from andysellick November 11, 2024 12:37
@@ -14,9 +14,17 @@
header_classes = %w[gem-c-layout-header govuk-header]
header_classes << "gem-c-layout-header--#{environment}" if environment
header_classes << "gem-c-layout-header--no-bottom-border" if remove_bottom_border

component_helper = GovukPublishingComponents::Presenters::ComponentWrapperHelper.new(local_assigns)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the lines above for header_classes be removed now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, good spot, have removed.

@AshGDS AshGDS force-pushed the layout-header-component-wrapper branch from ad9d1ba to c8137c4 Compare November 14, 2024 12:00
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4385 November 14, 2024 12:01 Inactive
@AshGDS AshGDS force-pushed the layout-header-component-wrapper branch from c8137c4 to c10f22a Compare November 14, 2024 12:07
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4385 November 14, 2024 12:08 Inactive
@AshGDS AshGDS force-pushed the layout-header-component-wrapper branch from c10f22a to 33f18fa Compare November 14, 2024 12:12
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4385 November 14, 2024 12:13 Inactive
@AshGDS AshGDS merged commit c0edcb9 into main Nov 14, 2024
12 checks passed
@AshGDS AshGDS deleted the layout-header-component-wrapper branch November 14, 2024 12:16
@dnkrj dnkrj mentioned this pull request Nov 14, 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