This repository has been archived by the owner on Sep 11, 2018. It is now read-only.
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.
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.
It seems this would suffer from the same issue Rob talks about here in How to Label Shadow DOM - A11ycasts #20. Specifically, how the browser would be looking for an element with this ID in the scope of this shadow-DOM. @dlockhart : looks like we still have
aria-labelledby
- should we try to remove that?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.
Yeah you're right -- neither of those will work in shadow-land. If we want to associate labels with the text inputs, we'll unfortunately likely need to incorporate the label itself into the web component. :(
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.
I created #9 to track this
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.
So, for describedby, what do you suggest for now? If date-picker kept the native input field (styled to look like a d2l specific one, like we had before) then there wouldn't be an issue am I right? Can we just switch back to that until we have a solution for labels and descriptions that play nicely with shadow-DOM?