Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Add a hidden label for screen readers #74

Merged
merged 2 commits into from Nov 27, 2020
Merged

Add a hidden label for screen readers #74

merged 2 commits into from Nov 27, 2020

Conversation

Ladsgroup
Copy link
Contributor

This fixes the a11y issue, also given that vue2 doesn't support multiple
elements in one component, wrapping everything under a nice

Bug: T265245

This fixes the a11y issue, also given that vue2 doesn't support multiple
elements in one component, wrapping everything under a nice <div>

Bug: T265245
:value="optionItem"
:key="index"
<div class="querybuilder__dropdown">
<label class="querybuilder__dropdown-label">Value Type</label>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think that this will satisfy the test, it probably needs a for="someId" attribute to actually link it to the select. Alternatively, the select could maybe get an [aria-labeledby attribute]9https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

of course, you're right. I will work on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done now.

@Ladsgroup Ladsgroup merged commit da5e418 into master Nov 27, 2020
@Ladsgroup Ladsgroup deleted the hidden_label branch November 27, 2020 10:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants