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

[DO NOT MERGE] Refactor single page notification component #4501

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Dec 13, 2024

What

Refactor the markup of the single page notification button component slightly...

  • move most of the component attributes (class, data attributes) to be handled by the component wrapper on the parent element
  • update the helper and tests to reflect this change

I've tested this with a branch on integration for https://www.gov.uk/guidance/check-if-an-email-youve-received-from-hmrc-is-genuine and it seems to behave as it did before, but I've left the commit in this PR for testing a branch in case anyone wants to test it for themselves.

Why

This component was inconsistent because it was using the component wrapper helper but had its parent class (gem-c-single-page-notification-button) on a child element, rather than the parent. There seems to be no need for this, but it was causing a problem in some unrelated work, so thought I'd fix it.

Visual Changes

None, hopefully.

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4501 December 13, 2024 14:58 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4501 December 16, 2024 10:01 Inactive
- move most of the component attributes (class, data attributes) to be handled by the component wrapper on the parent element
- update the helper and tests to reflect this change
@andysellick andysellick marked this pull request as ready for review December 17, 2024 11:13
@andysellick andysellick changed the title Refactor single page notification component [DO NOT MERGE] Refactor single page notification component Dec 17, 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.

2 participants