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

Use component wrapper on step nav header component #4521

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

AshGDS
Copy link
Contributor

@AshGDS AshGDS commented Jan 6, 2025

What

  • Adds the component wrapper helper to the step nav 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.

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4521 January 6, 2025 14:37 Inactive
@AshGDS AshGDS force-pushed the step-nav-header-component-wrapper branch from 785b48d to 97f42d4 Compare January 6, 2025 14:41
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4521 January 6, 2025 14:42 Inactive
@AshGDS AshGDS force-pushed the step-nav-header-component-wrapper branch from 97f42d4 to 61673c8 Compare January 6, 2025 14:44
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4521 January 6, 2025 14:44 Inactive
@AshGDS AshGDS marked this pull request as ready for review January 6, 2025 14:47
@AshGDS AshGDS requested a review from andysellick January 6, 2025 14:47
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

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

One minor comment, non-blocking.

ga4_data = {
event_name: "navigation",
type: "super breadcrumb",
index_link: "1",
index_total: "1",
}.to_json
end

shared_helper = GovukPublishingComponents::Presenters::SharedHelper.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.

This looks fine but I was a bit confused by it being in two separate commits. Maybe worth either merging them or adding something to the commit message to clarify that the shared helper is no longer needed as the margin bottom is now provided by the component wrapper helper?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point - will do, thanks!

@AshGDS AshGDS force-pushed the step-nav-header-component-wrapper branch from 61673c8 to edbf9f2 Compare January 6, 2025 16:39
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4521 January 6, 2025 16:39 Inactive
@AshGDS AshGDS merged commit d5d5b4b into main Jan 6, 2025
12 checks passed
@AshGDS AshGDS deleted the step-nav-header-component-wrapper branch January 6, 2025 16:44
@andysellick andysellick mentioned this pull request Jan 7, 2025
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