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

feat: add support of ol accordions #16535

Merged
merged 11 commits into from
May 23, 2024

Conversation

Tresau
Copy link
Contributor

@Tresau Tresau commented May 21, 2024

Closes #16040

Adds a prop of ordered to the Accordion, if set to true, the Accordion will be rendered as an <ol> rather than a <ul>

Changelog

New

  • allow Accordion to render as an ordered list rather than just an unordered list

Changed

  • n/a

Removed

  • none

Testing / Reviewing

Verify that new test cases pass. Verify that the storybook loads, and contains the new prop of ordered with correct description. Verify that the rendered html changes to an <ol> when ordered is set to true, and a <ul> when set to false or not supplied

@Tresau Tresau requested a review from a team as a code owner May 21, 2024 18:24
Copy link

netlify bot commented May 21, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit c3bb70b
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/664ce6d83e78fc0008395c8b
😎 Deploy Preview https://deploy-preview-16535--carbon-elements.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.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c3bb70b
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/664ce6d870ae21000816ed38
😎 Deploy Preview https://deploy-preview-16535--v11-carbon-react.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.

@Tresau Tresau requested a review from a team as a code owner May 21, 2024 18:34
Copy link

netlify bot commented May 21, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 5c9e29c
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/664ce6eb2107570009f2d3e2
😎 Deploy Preview https://deploy-preview-16535--carbon-elements.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.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5c9e29c
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/664ce6ebede9bf00076f5c9a
😎 Deploy Preview https://deploy-preview-16535--v11-carbon-react.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.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 8e1478d
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/664f657e18da380008d84f0e
😎 Deploy Preview https://deploy-preview-16535--v11-carbon-react.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.

Copy link

netlify bot commented May 21, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 8e1478d
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/664f657eb7dbb2000878d709
😎 Deploy Preview https://deploy-preview-16535--carbon-elements.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.

Copy link
Contributor

@Gururajj77 Gururajj77 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, looks good!

@alisonjoseph alisonjoseph added this pull request to the merge queue May 23, 2024
Merged via the queue into carbon-design-system:main with commit e12dd6f May 23, 2024
21 checks passed
@bdanbury
Copy link

Chef's Kiss! Thanks team this was a great response and a wonderful addition for Accessibility!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accordion as OL when needed (instead of always a UL)
4 participants