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

fix(accordion): change skeleton buttons to spans for a11y #4273

Merged
merged 5 commits into from
Oct 9, 2019
Merged

fix(accordion): change skeleton buttons to spans for a11y #4273

merged 5 commits into from
Oct 9, 2019

Conversation

jendowns
Copy link
Contributor

@jendowns jendowns commented Oct 9, 2019

Closes #4177

Proposal to change the button elements inside the AccordionSkeleton and AccordionSkeletonItem components into spans. My reasoning: since these headings and items in the skeleton component are non-interactive, there shouldn't be a reason to mark them as button elements. This change would also remove the DAP violations.

Changelog

Changed

  • change button elements into span elements

Testing / Reviewing

Open the React storybook deployment, view the AccordionSkeleton, and run the latest DAP ruleset (Sept 2019).

@jendowns jendowns requested a review from a team as a code owner October 9, 2019 15:49
@ghost ghost requested review from asudoh and joshblack October 9, 2019 15:50
@netlify
Copy link

netlify bot commented Oct 9, 2019

Deploy preview for the-carbon-components ready!

Built with commit f99ba3d

https://deploy-preview-4273--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Oct 9, 2019

Deploy preview for carbon-elements ready!

Built with commit f99ba3d

https://deploy-preview-4273--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Oct 9, 2019

Deploy preview for carbon-components-react ready!

Built with commit f99ba3d

https://deploy-preview-4273--carbon-components-react.netlify.com

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @jendowns!

@asudoh asudoh merged commit 5d8dee8 into carbon-design-system:master Oct 9, 2019
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.

AVT 1 - Skeleton: Accordion & Button DAP violation for missing form control label
3 participants