Skip to content

Commit f0edebd

Browse files
ENGCOM-8341: Remove incorrect use important in swatches option text #30454
- Merge Pull Request #30454 from mrtuvn/magento2:remove-incorrect-use-important-declare-swatches - Merged commits: 1. df5ae12
2 parents bc8e51d + df5ae12 commit f0edebd

File tree

1 file changed

+5
-6
lines changed
  • app/design/frontend/Magento/blank/Magento_Swatches/web/css/source

1 file changed

+5
-6
lines changed

app/design/frontend/Magento/blank/Magento_Swatches/web/css/source/_module.less

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
// _____________________________________________
6666

6767
& when (@media-common = true) {
68-
6968
.swatch {
7069
&-attribute {
7170
&-label {
@@ -155,7 +154,7 @@
155154
padding: 4px 8px;
156155

157156
&.selected {
158-
.lib-css(background-color, @swatch-option-text__selected__background-color) !important;
157+
.lib-css(background-color, @swatch-option-text__selected__background-color);
159158
}
160159
}
161160

@@ -201,21 +200,22 @@
201200
top: 0;
202201
}
203202
}
203+
204204
&-disabled {
205205
border: 0;
206206
cursor: default;
207207
outline: none !important;
208208

209209
&:after {
210210
.lib-rotate(-30deg);
211+
.lib-css(background, @swatch-option__disabled__background);
211212
content: '';
212213
height: 2px;
213214
left: -4px;
214215
position: absolute;
215216
top: 10px;
216217
width: 42px;
217218
z-index: 995;
218-
.lib-css(background, @swatch-option__disabled__background);
219219
}
220220
}
221221

@@ -226,6 +226,7 @@
226226
&-tooltip {
227227
.lib-css(border, @swatch-option-tooltip__border);
228228
.lib-css(color, @swatch-option-tooltip__color);
229+
.lib-css(background, @swatch-option-tooltip__background);
229230
display: none;
230231
max-height: 100%;
231232
min-height: 20px;
@@ -234,7 +235,6 @@
234235
position: absolute;
235236
text-align: center;
236237
z-index: 999;
237-
.lib-css(background, @swatch-option-tooltip__background);
238238

239239
&,
240240
&-layered {
@@ -278,9 +278,9 @@
278278
}
279279

280280
&-layered {
281+
.lib-css(background, @swatch-option-tooltip-layered__background);
281282
.lib-css(border, @swatch-option-tooltip-layered__border);
282283
.lib-css(color, @swatch-option-tooltip-layered__color);
283-
.lib-css(background, @swatch-option-tooltip-layered__background);
284284
display: none;
285285
left: -47px;
286286
position: absolute;
@@ -326,7 +326,6 @@
326326
margin: 2px 0;
327327
padding: 2px;
328328
position: static;
329-
z-index: 1;
330329
}
331330

332331
&-visual-tooltip-layered {

0 commit comments

Comments
 (0)