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(structuredlist): fixes DAP errrors #5066

Merged
merged 6 commits into from
Jan 16, 2020
Merged

fix(structuredlist): fixes DAP errrors #5066

merged 6 commits into from
Jan 16, 2020

Conversation

dakahn
Copy link
Contributor

@dakahn dakahn commented Jan 16, 2020

Closes #1882

There were two remaining DAP errors for the StructuredList component:
2020-01-16 08_14_48-Storybook
2020-01-16 08_15_02-Storybook

Changed

  • removes role=presentation from the label element
    Not 100% sure why this was there in the first place 😕, but easy clear by removing it
  • removes htmlFor attribute prop from Story
    since we have an implicit (wrapping) label this is unneeded.

Ongoing concerns

As was mentioned in this comment this component needs some work getting the underlying markup in line with what we actually want here and more importantly reading properly in a screen reader. Since we can clear the DAP errors now i'll roll the larger component rework into another ticket #5065

Testing / Reviewing

Test and make sure the StructuredList behaves as expected (should be no changes).

@dakahn dakahn requested review from a team, asudoh and joshblack and removed request for a team January 16, 2020 14:32
@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for the-carbon-components ready!

Built with commit 2fc1fbc

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

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for carbon-elements ready!

Built with commit 2fc1fbc

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

@netlify
Copy link

netlify bot commented Jan 16, 2020

Deploy preview for carbon-components-react ready!

Built with commit 2fc1fbc

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

@tw15egan tw15egan requested a review from a team as a code owner January 16, 2020 18:35
@ghost ghost requested a review from aledavila January 16, 2020 18:35
@joshblack joshblack merged commit 715824f into carbon-design-system:master Jan 16, 2020
joshblack pushed a commit to joshblack/carbon that referenced this pull request Jan 23, 2020
* fix(Dropdown): rely on list-box height closes carbon-design-system#4916

* fix(structuredlist): remove role=presentation, remove htmlFor attribute

Co-authored-by: TJ Egan <[email protected]>
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 - Carbon X Structured List Component DAP violation
5 participants