x-govuk / govuk-components

Lightweight Ruby on Rails components for developing with the GOV.UK Design System.
https://govuk-components.netlify.app
MIT License
150 stars 20 forks source link

Use nested hash data attributes in build_data_attributes method #530

Closed DavidBiddle closed 7 months ago

DavidBiddle commented 7 months ago

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

Fixes #529

netlify[bot] commented 7 months ago

Deploy request for govuk-components pending review.

Visit the deploys page to approve it

Name Link
Latest commit d72a8105260009558405920af89f0b77f4b4524e
peteryates commented 7 months ago

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