Skip to content
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

Merged
merged 5 commits into from
Aug 29, 2022

Conversation

MisRob
Copy link
Member

@MisRob MisRob commented Aug 22, 2022

Description

  • Previously, the default slot content was wrapped in <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 the label property)
  • Organizes KCheckbox documentation page and adds some examples of how to use labels

Issue addressed

Addresses #347

Before/after screenshots

Steps to test

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical and brittle code paths are covered by unit tests
  • The change has been added to the changelog

Reviewer guidance

  • Is the code clean and well-commented?
  • Are there tests for this change?
  • Are all UI components LTR and RTL compliant (if applicable)?
  • Add other things to check for here

Post-merge updates and tracking

  • Learning Platform update PR is submitted
  • Learning Platform update PR is merged
  • Studio update PR is submitted
  • Studio update PR is merged
  • Data Portal update PR is submitted
  • Data Portal update PR is merged

MisRob added 2 commits August 24, 2022 11:03
no matter of whether `label` prop or the default
slot is used to provide the label content.
@MisRob MisRob force-pushed the kcheckbox-fix-label branch 2 times, most recently from e49b417 to e57168e Compare August 24, 2022 10:59
@MisRob MisRob force-pushed the kcheckbox-fix-label branch from e57168e to 4353c09 Compare August 24, 2022 11:26
@MisRob MisRob marked this pull request as ready for review August 24, 2022 11:31
@MisRob MisRob added the TODO: needs review Waiting for review label Aug 24, 2022
@MisRob MisRob requested a review from radinamatic August 24, 2022 11:38
@MisRob
Copy link
Member Author

MisRob commented Aug 24, 2022

@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

Copy link
Member

@akolson akolson left a 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

Copy link
Member

@radinamatic radinamatic left a 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! 💯 :shipit:

@MisRob MisRob merged commit 269b294 into learningequality:develop Aug 29, 2022
MisRob added a commit to MisRob/kolibri that referenced this pull request Aug 29, 2022
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
@MisRob MisRob deleted the kcheckbox-fix-label branch October 14, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants