-
Notifications
You must be signed in to change notification settings - Fork 158
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
fix(link-list-section): replaced wrong heading component in storybook #4922
fix(link-list-section): replaced wrong heading component in storybook #4922
Conversation
Deploy preview created for package Built with commit: 0c30b416dac06553d2d238c132f361914db9fcf9 |
Deploy preview created for package Built with commit: 0c30b416dac06553d2d238c132f361914db9fcf9 |
Deploy preview created for package Built with commit: 0c30b416dac06553d2d238c132f361914db9fcf9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for doing this @IgnacioBecerra!
if (!this.hasAttribute('role')) { | ||
this.setAttribute('role', 'heading'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add aria-level
, too? Here's an example for one representing <h3>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 - Thanks @IgnacioBecerra for the update!
@IgnacioBecerra can you check why one of the CI checks are failing? |
…carbon-design-system#4922) ### Related Ticket(s) carbon-design-system#4844 ### Description Replaced the previous `<dds-content-section-heading>`component within the Link List Section story to `<dds-link-list-heading>`. Also noted that `<dds-content-section-heading>` didn't have the `heading` role and included that in this PR. ### Changelog **New** - added `role='heading'` to `<dds-content-section-heading>` **Changed** - replaced wrong heading component for Link List Section within storybook <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "package: styles": Carbon Expressive --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Related Ticket(s)
#4844
Description
Replaced the previous
<dds-content-section-heading>
component within the Link List Section story to<dds-link-list-heading>
.Also noted that
<dds-content-section-heading>
didn't have theheading
role and included that in this PR.Changelog
New
role='heading'
to<dds-content-section-heading>
Changed