-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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 focus box-shadow for validation stated form-controls #38719
Conversation
Losing the inner shadow is fine to me, because I think of the "inset" shadow as being lifted once focused. Hence the shadow around the outside. I'd be fine leaving that out still. I also wasn't aware of a loss of transition, haven't seen that. Do you have a demo or screen recording? |
Hey @mdo! Once again, I will clarify that the code I added is not fiction, it's just a copy-paste of how shadows change in other places. You can search for the comment text |
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.
Thanks for the PR @KODerFunk. I'm fine with the suggested changes. Before merging it, don't you think we should do the same thing for .form-select
and .form-check-input
in this same file too?
@julien-deramond, sorry for pause and thank you for your understanding. I'll try to take a look at your suggestion and make changes accordingly this weekend. |
@julien-deramond, @mdo, hi! I recorded several movies. I strengthened inner shadow to make it easier to see problem.
fixed-textfield-focus-shadows.mov
broken-select-focus-shadows.mov
fixed-select-focus-shadows.mov
problemless-checkbox-focus-shadow.mov |
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.
LGTM! Thanks @KODerFunk for the PR and the detailed explanations with the videos.
Co-authored-by: Dmitry Karpunin <ext-dmitriy.karpunin@sbermarket.ru>
Description
Fix focus box-shadow for validation stated form-controls.
Motivation & Context
I use styles with custom build bootstrap with option
$enable-shadows: true;
. Found a few issues in.form-control
styling with classes.is-invalid
and.is-valid
. In particular, the shadow override for such elements, when in focus, does not use standard wrap that I have used in this PR. Without it, for such elements, in the state of focus, only the outer shadow is exposed.Type of changes
Checklist
npm run lint
)Live previews
Related issues
Not found.