-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Adjust input-style__focus mixin to proper focus size #54398
Conversation
Size Change: +10 B (0%) Total Size: 1.52 MB
ℹ️ View Unchanged
|
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.
Curious how this has been wrong for so long, I could swear it was the correct 1.5px initially. In fact in testing this PR I looked at a variety of different inputs to test this is correct, but it seems to be!
The reason it's working is that the .5px shadow is applied on top of a 1px border:
Let's land this, but perhaps add a CSS comment right above? Something like:
// Expand the default border focus style by .5px to be a total of 1.5px.
Question, can we simply add the border-color-change to the mixin, to make it more explicit? Something like
? |
I'm not following? The
|
Added, good call. |
Flaky tests detected in 33788b2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6175023668
|
13832bc
to
33788b2
Compare
What?
Small style adjustment to make focus consistent across components. These two use the
@input-style__focus
mixin, which was adding too large of a focus shadow; I used the same technique used elsewhere — and recently in #54394.Why?
Consistency.
Testing Instructions
Screenshots or screencast