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

Add data attributes to summary cards and lists #4331

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

pezholio
Copy link
Contributor

What

This allows data attributes to be added to summary card and summary list rows

Why

This will allow developers to add Javascript interactivity to individual rows via module initialisation.

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4331 October 23, 2024 11:02 Inactive
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4331 October 23, 2024 11:03 Inactive
@pezholio pezholio force-pushed the add-data-attributes-to-summary-cards-and-lists branch from bd2ce37 to 9b2379f Compare October 23, 2024 12:48
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4331 October 23, 2024 12:48 Inactive
@pezholio pezholio force-pushed the add-data-attributes-to-summary-cards-and-lists branch from 9b2379f to 762080b Compare October 28, 2024 08:57
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4331 October 28, 2024 08:58 Inactive
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.

Code looks good 👍 However we don't do releases within the same pull request. Our process is separate release PRs, and we usually give other devs a heads up in the #govuk-frontenders Slack channel first, in case anyone else wants their changes included in a release.

Therefore, could you rename your changelog entry heading to Unreleased, and remove the Gemfile.lock and version.rb changes?

Thanks 👍

See release docs: https://github.com/alphagov/govuk_publishing_components/blob/main/docs/publishing-to-rubygems.md#publishing-to-rubygems

And an example release PR:
#4338

This allows users to add data attributes (for example, when initialising
Javascript modules) to individual rows
This allows users to add data attributes (for example, when initialising
Javascript modules) to individual rows
@pezholio pezholio force-pushed the add-data-attributes-to-summary-cards-and-lists branch from 762080b to 5e3c2e4 Compare October 29, 2024 09:15
@pezholio pezholio requested a review from AshGDS October 29, 2024 09:15
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-4331 October 29, 2024 09:15 Inactive
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 👍

@pezholio pezholio merged commit ea97b38 into main Oct 29, 2024
11 of 12 checks passed
@pezholio pezholio deleted the add-data-attributes-to-summary-cards-and-lists branch October 29, 2024 09:52
@pezholio pezholio mentioned this pull request Oct 29, 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.

3 participants