-
Notifications
You must be signed in to change notification settings - Fork 747
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
Using the new ariaLabelledBy prop in KSwitch #12918
base: develop
Are you sure you want to change the base?
Changes from 3 commits
eb64d15
cf17abd
cca9766
7eb9f93
0290bec
4a37ff3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,10 +96,14 @@ | |
:style="{ display: 'inline-block', marginLeft: '6px' }" | ||
:size="26" | ||
/> | ||
<span :id="`toggle-lesson-visibility-label-${lesson.id}`"> | ||
Toggle visibility for lesson {{ lesson.name }} | ||
</span> | ||
<KSwitch | ||
v-else | ||
:key="`switch-${lesson.id}`" | ||
v-else: | ||
key="`switch-${lesson.id}`" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this piece of code is causing an error in my code editor. Is there a particular reason that the |
||
name="toggle-lesson-visibility" | ||
:ariaLabelledBy="`toggle-lesson-visibility-label-${lesson.id}`" | ||
label="" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since it is set as an empty string, is the |
||
:checked="lesson.active" | ||
:value="lesson.active" | ||
|
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.
Should this line match the
id='toggle-quiz-visibility-label'
in the span above?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.
Also, shouldn't the prop be named
ariaLabelledBy
rather than:aria-labelledby
?