-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
joshblack
merged 6 commits into
carbon-design-system:master
from
dakahn:1882-structured-list-dap
Jan 16, 2020
Merged
fix(structuredlist): fixes DAP errrors #5066
joshblack
merged 6 commits into
carbon-design-system:master
from
dakahn:1882-structured-list-dap
Jan 16, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dakahn
requested review from
a team,
asudoh and
joshblack
and removed request for
a team
January 16, 2020 14:32
joshblack
approved these changes
Jan 16, 2020
Deploy preview for the-carbon-components ready! Built with commit 2fc1fbc https://deploy-preview-5066--the-carbon-components.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 2fc1fbc |
Deploy preview for carbon-components-react ready! Built with commit 2fc1fbc https://deploy-preview-5066--carbon-components-react.netlify.com |
abbeyhrt
approved these changes
Jan 16, 2020
ghost
requested a review
from aledavila
January 16, 2020 18:35
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #1882
There were two remaining DAP errors for the StructuredList component:
Changed
role=presentation
from the label elementNot 100% sure why this was there in the first place 😕, but easy clear by removing it
htmlFor
attribute prop from Storysince 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).