-
Notifications
You must be signed in to change notification settings - Fork 86
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
KCheckbox: Wrap default's slot content in <label> #351
Conversation
c1257aa
to
f7cd8be
Compare
no matter of whether `label` prop or the default slot is used to provide the label content.
e49b417
to
e57168e
Compare
+ smaller phrasing updates
e57168e
to
4353c09
Compare
@radinamatic I will appreciate your review You can test checkboxes used on the preview of the updated KDS documentation page here https://deploy-preview-351--kolibri-design-system.netlify.app/kcheckbox/ and also in Kolibri in this PR learningequality/kolibri#9648 |
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.
PR looks good! Thanks @MisRob
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.
Tested in corresponding Kolibri PR, looking great, thank you! 💯
The only user-facing update between the previous and the new version is learningequality/kolibri-design-system#351 Updates to Kolibri related to that PR have been addressed in 414c1ac
Description
<div>
, making the checkbox inaccessible when label's content is provided via the default slot. This PR fixes it by replacing<div>
with<label>
(this also makes using the default slot consistent with using thelabel
property)KCheckbox
documentation page and adds some examples of how to use labelsIssue addressed
Addresses #347
Before/after screenshots
KCheckbox
documentationSteps to test
KCheckboxes
used in examples (visually + markup)Testing checklist
changelog
Reviewer guidance
Post-merge updates and tracking