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

Use box-shadow mixin for form controls #30480

Merged
merged 1 commit into from
Apr 1, 2020

Conversation

zalog
Copy link
Contributor

@zalog zalog commented Mar 28, 2020

This PR fixes css property box-shadow become invalid.
That happends if one of $input-box-shadow or $input-focus-box-shadow is none.
Our box-shadow mixin verifies for length($string) == 1 and it covers that case.

LE: Oh, this relates with #30394

cc:// @mdo @ysds

@zalog zalog requested a review from a team as a code owner March 28, 2020 21:17
@zalog zalog changed the title fix: adds box-shadow mixin fix(form-control): adds box-shadow mixin Mar 28, 2020
@zalog zalog force-pushed the zalog-form-control-shadow branch 2 times, most recently from c3a14c5 to a315360 Compare March 30, 2020 13:36
@ysds
Copy link
Member

ysds commented Apr 1, 2020

Does this remove the focus outline when enable-shadow: false?

Fixes css property `box-shadow` become invalid.
The css property is invalid if one of `$input-box-shadow` or `$input-focus-box-shadow` is `none`.
The `box-shadow` mixin verifies for `length($string) == 1`.
@zalog zalog force-pushed the zalog-form-control-shadow branch from a315360 to c22c836 Compare April 1, 2020 13:46
@zalog
Copy link
Contributor Author

zalog commented Apr 1, 2020

@ysds tnks for feedback! Of course you're right :)
You can take another look now.
Also the branch is rebased.

@MartijnCuppens MartijnCuppens changed the title fix(form-control): adds box-shadow mixin Use box-shadow mixin for form controls Apr 1, 2020
@MartijnCuppens MartijnCuppens merged commit 1cc1a47 into twbs:master Apr 1, 2020
@zalog zalog deleted the zalog-form-control-shadow branch April 1, 2020 20:12
MartijnCuppens added a commit that referenced this pull request Apr 6, 2020
Use `box-shadow` mixin for form controls
XhmikosR pushed a commit that referenced this pull request Apr 7, 2020
Use `box-shadow` mixin for form controls
XhmikosR pushed a commit that referenced this pull request Apr 10, 2020
Use `box-shadow` mixin for form controls
XhmikosR pushed a commit that referenced this pull request Apr 13, 2020
Use `box-shadow` mixin for form controls
olsza pushed a commit to olsza/bootstrap that referenced this pull request Oct 3, 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.

3 participants