Skip to content

Commit 2574519

Browse files
authored
ENGCOM-4145: focus-not-proper-on-configurable-product-swatches:: focus not proper … #20992
2 parents cb02a87 + df3efc9 commit 2574519

File tree

2 files changed

+20
-6
lines changed
  • app/design/frontend/Magento

2 files changed

+20
-6
lines changed

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,19 @@
9191
&-options {
9292
margin-top: @indent__s;
9393

94+
&:focus {
95+
box-shadow: none;
96+
}
97+
9498
.swatch-option-tooltip-layered .title {
9599
.lib-css(color, @swatch-option-tooltip-layered-title__color);
96-
width: 100%;
97-
height: 20px;
98-
position: absolute;
99100
bottom: -5px;
101+
height: 20px;
100102
left: 0;
101-
text-align: center;
102103
margin-bottom: @indent__s;
104+
position: absolute;
105+
text-align: center;
106+
width: 100%;
103107
}
104108
}
105109

@@ -132,15 +136,19 @@
132136
text-align: center;
133137
text-overflow: ellipsis;
134138

139+
&:focus {
140+
box-shadow: @focus__box-shadow;
141+
}
142+
135143
&.text {
136144
.lib-css(background, @swatch-option-text__background);
137145
.lib-css(color, @swatch-option-text__color);
138146
font-size: @font-size__s;
139147
font-weight: @font-weight__bold;
140148
line-height: 20px;
141-
padding: 4px 8px;
142-
min-width: 22px;
143149
margin-right: 7px;
150+
min-width: 22px;
151+
padding: 4px 8px;
144152

145153
&.selected {
146154
.lib-css(background-color, @swatch-option-text__selected__background-color) !important;

app/design/frontend/Magento/luma/Magento_Catalog/web/css/source/_module.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,12 @@
294294
}
295295

296296
.product-options-wrapper {
297+
.fieldset {
298+
&:focus {
299+
box-shadow: none;
300+
}
301+
}
302+
297303
.fieldset-product-options-inner {
298304
.legend {
299305
.lib-css(font-weight, @font-weight__semibold);

0 commit comments

Comments
 (0)