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

Fix component wrapper rel option #4552

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Fix component wrapper rel option #4552

merged 1 commit into from
Jan 15, 2025

Conversation

andysellick
Copy link
Contributor

What

Fixes a bug in how the component wrapper handles the rel option.

  • code previously assumed that only one rel option would be passed, but you can have more than one in the attribute
  • passing more than one previously caused an error even if all of the rels were valid, this change corrects that

Why

Because I didn't think of this when I was writing it yesterday 🤦

Visual Changes

None.

Trello card: https://trello.com/c/hUDC8lzz/418-add-component-wrapper-helper-to-button-component

@andysellick andysellick requested a review from AshGDS January 15, 2025 10:30
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4552 January 15, 2025 10:30 Inactive
@andysellick
Copy link
Contributor Author

@AshGDS pause on review of this - just realised I can improve the test coverage.

- code previously assumed that only one rel option would be passed, but you can have more than one in the attribute
- passing more than one previously caused an error even if all of the rels were valid, this change corrects that
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4552 January 15, 2025 10:35 Inactive
@andysellick
Copy link
Contributor Author

@AshGDS okay for review now whenever you're free 👍

Copy link
Contributor

@AshGDS AshGDS left a comment

Choose a reason for hiding this comment

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

LGTM - Good spot 👍

@andysellick andysellick merged commit f6227cb into main Jan 15, 2025
12 checks passed
@andysellick andysellick deleted the cw-rel-fix branch January 15, 2025 10:42
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