You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever the Checkbox component sits inside a container with a non-default/initial overflow value (like overflow: auto or overflow: hidden, its focus outline is cut off at the edge of the container.
This is likely because the focus outline uses box-shadow & is not currently accommodating for the extra space needed.
There are several approaches to fix this probably, but I do have a quick idea that involves added 2px to make up for the spacing needed for the box-shadow. I'll open a PR for that proposal momentarily 👍
Detailed description
Whenever the
Checkbox
component sits inside a container with a non-default/initial overflow value (likeoverflow: auto
oroverflow: hidden
, its focus outline is cut off at the edge of the container.This is likely because the focus outline uses
box-shadow
& is not currently accommodating for the extra space needed.Screenshots:
overflow
overflow
Steps to reproduce the issue
Checkbox
and find the wrapping<fieldset>
element<fieldset>
tooverflow: auto
oroverflow: hidden
Checkbox
to see the focus "outline" (i.e., box-shadow) is cut off.The text was updated successfully, but these errors were encountered: