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

Unchecked Checkboxes inside small container shrink #325

Closed
beauwest opened this issue Feb 8, 2021 · 2 comments
Closed

Unchecked Checkboxes inside small container shrink #325

beauwest opened this issue Feb 8, 2021 · 2 comments
Assignees
Labels
bug Things that aren't working right in the library.

Comments

@beauwest
Copy link

beauwest commented Feb 8, 2021

Describe the bug
Checkboxes inside of a small-width container, with multiple words in the label, cause the unchecked style to be an incorrect width.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Checkbox demo
  2. Remove the min-width from the responsive container
  3. Add multiple words to the label of the checkbox
  4. Resize the container to a small width

Expected behavior
The label text adjusts, but the unchecked checkbox does not shrink.

Screenshots
Screen Shot 2021-02-08 at 12 02 37 PM

Desktop (please complete the following information):

  • OS: macOS 11.2
  • Browser: Chrome
  • Version 88.0.4324.150

Thank you!

@beauwest beauwest added the bug Things that aren't working right in the library. label Feb 8, 2021
@claviska
Copy link
Member

Thanks for reporting this. The fix will be released in the next beta. If this is blocking you, use this in the meantime:

sl-checkbox::part(control) {
  flex: 0 0 auto;
}

@beauwest
Copy link
Author

Awesome, thank you Cory! It's non-blocking, just came across it in my app. Appreciate all the work you're doing on this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

2 participants