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 support for attributes on table cells #1045

Merged

Conversation

jonheslop
Copy link
Contributor

@jonheslop jonheslop commented Oct 29, 2018

It’s currently not possible to attach HTML attributes to table cells.
This PR makes it possible by using the same object pattern that is used
on other components (and also the <table> element).

I’ve updated the nunjucks template as well as the YAML and the README
to reflect the new functionality.

Background

Whilst migrating https://github.com/alphagov/pay-selfservice I’ve tried to use macros where ever possible, but we regularly use ID’s on cells within table so that our various tests can easily get the value.

It’s currently not possible to attach HTML attributes to table cells.
This PR makes it possible by using the same object pattern that is used
on other components (and also the <table> element).

I’ve updated the nunjucks template as well as the YAML and the README
to reflect the new functionality.
@jonheslop jonheslop force-pushed the add-support-for-attributes-on-table-cells branch from 3c77f32 to 5d9b8fd Compare October 29, 2018 10:46
Copy link

@kr8n3r kr8n3r left a comment

Choose a reason for hiding this comment

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

this looks good 👍
Thanks very much for the feature. We do require a second approval from the team before merging.

@kr8n3r kr8n3r added this to the [NEXT] milestone Oct 29, 2018
@jonheslop jonheslop force-pushed the add-support-for-attributes-on-table-cells branch 2 times, most recently from 362aff3 to c255929 Compare October 29, 2018 11:03
Copy link
Contributor

@NickColley NickColley left a comment

Choose a reason for hiding this comment

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

Excellent work Jon thanks.

@kr8n3r kr8n3r merged commit f8b816f into alphagov:master Oct 29, 2018
@jonheslop jonheslop deleted the add-support-for-attributes-on-table-cells branch October 29, 2018 12:34
@jonheslop
Copy link
Contributor Author

Yay! Thanks :D

@kr8n3r kr8n3r mentioned this pull request Nov 1, 2018
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