Skip to content

Commit de0e768

Browse files
committed
fix(scss): cssnano mangles background-position temp fix
re: BS4 misplaced validation feedback icons
1 parent 4dc6377 commit de0e768

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

scss/_fixes.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// cssnano produces improper output in postcss-normalize-positions
2+
// clean-css
3+
// this is a temp fix to avoid the issue where
4+
// input:
5+
// background-position: center right $input-height-inner-quarter;
6+
// produces output:
7+
// background-position: 100% $input-height-inner-quarter;
8+
9+
.was-validated .form-control:valid, .form-control.is-valid {
10+
background-position: right $input-height-inner-quarter center;
11+
}
12+
13+
.was-validated .form-control:invalid, .form-control.is-invalid {
14+
background-position: right $input-height-inner-quarter center;
15+
}

scss/coreui-standalone.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@
6363

6464
// Custom Properties support for Internet Explorer
6565
@import "ie-custom-properties";
66+
67+
// temp fixes
68+
@import "fixes";

scss/coreui.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@
6262

6363
// Custom Properties support for Internet Explorer
6464
@import "ie-custom-properties";
65+
66+
// temp fixes
67+
@import "fixes";

0 commit comments

Comments
 (0)