Skip to content

Use box-shadow mixin for form controls#30480

Merged
MartijnCuppens merged 1 commit intotwbs:masterfrom
zalog:zalog-form-control-shadow
Apr 1, 2020
Merged

Use box-shadow mixin for form controls#30480
MartijnCuppens merged 1 commit intotwbs:masterfrom
zalog:zalog-form-control-shadow

Conversation

@zalog
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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.

@XhmikosR XhmikosR requested a review from MartijnCuppens April 1, 2020 15:57
@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.

4 participants