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

fix(checkbox): add padding to accommodate focus state box-shadow #6481

Closed
wants to merge 4 commits into from

Conversation

jendowns
Copy link
Contributor

Closes #6480

Adds 2px top and left padding to the checkbox's wrapper element. This will make space for the focus state's box-shadow, so that the shadow isn't cut off when the checkbox is inside a container that has an overflow. (See screenshots in #6480 for details)

Let me know if you want a diff approach! 👍

Changelog

New

  • add 2px top and left padding to the checkbox wrapper

@jendowns jendowns requested a review from a team as a code owner July 16, 2020 14:22
@netlify
Copy link

netlify bot commented Jul 16, 2020

Deploy preview for carbon-elements ready!

Built with commit 0f6450f

https://deploy-preview-6481--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jul 16, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 0f6450f

https://deploy-preview-6481--carbon-components-react.netlify.app

@netlify
Copy link

netlify bot commented Jul 16, 2020

Deploy preview for carbon-elements ready!

Built with commit 3a81b59

https://deploy-preview-6481--carbon-elements.netlify.app

@jendowns
Copy link
Contributor Author

I just wanted to note here that depending on the solution for #6471, this PR may need to shift direction.

@netlify
Copy link

netlify bot commented Jul 16, 2020

@andreancardona
Copy link
Contributor

@jendowns Hey Jen! Going to bring this up to the team since it seems to be part of a larger discussion. Will keep you posted!

@jendowns
Copy link
Contributor Author

@andreancardona totally understandable! To be honest I'm not sure there's a path forward with this particular solution, since box-shadow isn't going to work for Windows high-contrast mode anyway. And other solutions (outline, border) won't require this work around.

So taking all of that into account, do you mind if I close this PR and defer to whatever solution you want to go with for #6471?

@andreancardona
Copy link
Contributor

@andreancardona totally understandable! To be honest I'm not sure there's a path forward with this particular solution, since box-shadow isn't going to work for Windows high-contrast mode anyway. And other solutions (outline, border) won't require this work around.

So taking all of that into account, do you mind if I close this PR and defer to whatever solution you want to go with for #6471?

@jendowns Yep that works for me! :)

@jendowns jendowns closed this Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checkbox focus state is cut off when inside a container with an overflow
3 participants