Skip to content

Commit 9eaf0c5

Browse files
author
Andrea Barbasso
committed
[DSC-2707] move select bg-image into css variable override
1 parent 4b60f6a commit 9eaf0c5

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/styles/_bootstrap_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ $border-radius: 0.25em;
6969

7070
$bs-border-radius-lg: 0.3rem;
7171

72+
$form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
73+
7274
$badge-padding-x: 0.4em;
7375
$badge-padding-y: 0.25em;
7476

src/styles/_bootstrap_variables_mapping.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,7 @@
108108
--bs-btn-focus-box-shadow: none;
109109
--bs-btn-active-border-color: transparent;
110110
}
111+
112+
.form-select {
113+
--bs-form-select-bg-img: #{$form-select-bg-img};
114+
}

src/styles/_global-styles.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,9 @@ ngb-tooltip-window {
606606
}
607607
}
608608

609-
// Override Bootstrap form-select background image
610609
.form-select {
611610
-webkit-appearance: none !important;
612611
-moz-appearance: none !important;
613612
appearance: none !important;
614-
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") !important;
615613
}
616614

0 commit comments

Comments
 (0)