-
Notifications
You must be signed in to change notification settings - Fork 81
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
[KSwitch]: Add ariaLabelledBy prop #806
Comments
Hey @AlexVelezLl I would like to work on this issue. |
Hey @Sahil-Sinha-11! For sure! I will assign this issue to you :) |
Hey @AlexVelezLl I added the id and arialabelledBy here |
Hey @Sahil-Sinha-11! No, this aria-labelledBy is for cases where we will not be using the So we rather should do: <input
...
:aria-labelledby="ariaLabelledBy"
/> |
Thanks for the guidance @AlexVelezLl. |
Yes! @Sahil-Sinha-11 |
Hey @AlexVelezLl I made a pr. |
Thank you @Sahil-Sinha-11! Will review it soon 🤗. |
Closed by #808 |
Product
Kolibri
Related: learningequality/kolibri#12743
Desired behavior
In some ocasions we want to have the switch input and its label with a different layout that wouldnt be possible to achieve with the current
label
prop. For example:And for these cases we should have an
aria-labelledby
attribute in theinput
element, and this pointing to the element that has the desired label for the switch. So we should add a new prop to KSwitch namedariaLabelledBy
that sets thearia-labelledby
attribute of this input element.Current behavior
Currently we have a
label
prop/slot, but this is not enough for more complex layouts.The Value Add
Improved accessibility.
Add labels
Please choose the appropriate label(s) from our existing label list to ensure that your issue is properly categorized. This will help us to better understand and address your issue!
The text was updated successfully, but these errors were encountered: