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

Ensure list item custom attributes are always set on list item #3336

Merged
merged 15 commits into from
Sep 12, 2024

Conversation

rmccar
Copy link
Contributor

@rmccar rmccar commented Sep 10, 2024

What is the context of this PR?

Fixes: #3337

Removes the deprecation introduced as part of the custom attribute changes to the list component in #3333. In that PR to avoid breaking changes some temporary code needed to put in to continue allowing custom attributes to be set on links within list items. This PR makes the changes so that list item custom attributes are now always set on the list item element rather than the link if there is a link in the list item and on the list item if there is no link. This means the functionality is more consistent. On lists where there is only one item the attribute is set on the paragraph element along with any list attributes.

How to review this PR

Test list component setting a different combinations of list and list item custom attributes, with and without url, single list item and multiple list items, single attribute and multiple attributes. Making sure that when there are multiple list items the attributes are always set on the <li> element whether url is set or not and when there is a single item that all attributes are set on the <p> element.

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@rmccar rmccar added the Breaking changes This PR contains at least one breaking change label Sep 10, 2024
Copy link

netlify bot commented Sep 10, 2024

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit 2531c1f
🔍 Latest deploy log https://app.netlify.com/sites/ons-design-system-preview/deploys/66e066a999f46300086d4ea1
😎 Deploy Preview https://deploy-preview-3336--ons-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rmccar rmccar self-assigned this Sep 10, 2024
@rmccar rmccar marked this pull request as ready for review September 10, 2024 15:16
@rmccar rmccar changed the base branch from main to major-release September 10, 2024 15:45
Copy link
Contributor

@alessioventuriniAND alessioventuriniAND left a comment

Choose a reason for hiding this comment

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

Can you please update the migration guide with this change?

…thub.com:ONSdigital/design-system into set-custom-list-attributes-on-list-item-not-link
@rmccar rmccar force-pushed the set-custom-list-attributes-on-list-item-not-link branch 2 times, most recently from 16b71e4 to 98eacf1 Compare September 11, 2024 11:15
@rmccar rmccar merged commit 1e00fa8 into major-release Sep 12, 2024
5 checks passed
@rmccar rmccar deleted the set-custom-list-attributes-on-list-item-not-link branch September 12, 2024 13:42
@rmccar rmccar restored the set-custom-list-attributes-on-list-item-not-link branch September 12, 2024 13:44
@rmccar rmccar deleted the set-custom-list-attributes-on-list-item-not-link branch September 12, 2024 13:46
@rmccar rmccar mentioned this pull request Sep 12, 2024
2 tasks
@alessioventuriniAND alessioventuriniAND mentioned this pull request Sep 13, 2024
2 tasks
rmccar pushed a commit that referenced this pull request Oct 9, 2024
* Standardise setting heading level across components #3111

* Update param names to camel case naming standard #3188

* Renamed utility class from ons-grid--flex to ons-grid-flex #3268

* Removed metadata component #3275

* Remove call to action component and all references #3143

* Update parameter from UnreadLink to UnreadLinkUrl in Message component #3290

* Update parameter subject from text to object type in Message list component #3291

* Add option for additional logo in footer #3227

* Update parameter from link to text in Footer Component #3294

* Update parameter name from url to src in Image Component #3293

* Update parameter names from LogoImage and LogoURL to image and url a in header component #3292

* Update parameter name from url to linkUrl in feedback component #3295

* Rename summary component parameters #3224

* Refactor timeline macro for compatibility with Jinja2 templates #3180

* Update parameter names in document list component #3299

* Update param name settingsLinkTextURL to settingsLinkURL in Cookies Banner component #3300

* Update parameter names in card component #3303

* Update parameter from linkText to text in external link component #3304

* Update param name from title to text in section navigation component #3305

* Update parameter from linkText to videoLinkText in Video Component #3306

* Update parameter from manualLink to manualLinkUrl in Address Input component #3307

* Ensure list item custom attributes are always set on list item #3336

* Rename items summary param for compatibility with Jinja #3382

* Update DS components to ensure compatibility with Jinja #3380

* Rename html OGL Link param to current naming standard #3379

* Format migration guide #3377

* Introduction of new spacing grid #3285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking changes This PR contains at least one breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove list custom attributes deprecation
3 participants