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 nested hash data attributes in build_data_attributes method #530

Merged
merged 1 commit into from
Apr 7, 2024
Merged

Use nested hash data attributes in build_data_attributes method #530

merged 1 commit into from
Apr 7, 2024

Conversation

DavidBiddle
Copy link
Contributor

Uses the nested hash method of declaring data attributes in build_data_attributes, as this is what deep_merge_html_attributes expects.

Fixes #529

Copy link

netlify bot commented Apr 5, 2024

👷 Deploy request for govuk-components pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit d72a810

@peteryates
Copy link
Member

Ah, well caught and solved. Thank you, I'll get this merged and released soon.

Copy link
Member

@peteryates peteryates left a comment

Choose a reason for hiding this comment

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

Looks great and works as expected.

@peteryates peteryates added this pull request to the merge queue Apr 7, 2024
Merged via the queue into x-govuk:main with commit c5f9442 Apr 7, 2024
10 checks passed
@DavidBiddle DavidBiddle deleted the use-nested-data-attributes branch April 8, 2024 14:50
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.

Gem can generate invalid duplicate data attributes on buttons
2 participants