Fix focus box-shadow for validation stated form-controls#38719
Fix focus box-shadow for validation stated form-controls#38719julien-deramond merged 2 commits intotwbs:mainfrom
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 |
julien-deramond
left a comment
There was a problem hiding this comment.
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.
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-controlstyling with classes.is-invalidand.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.