Skip to content

Commit 67778cd

Browse files
[Resolved : Styling <select> by changing less variables in Luma theme doesn't work as expected #15608]
1 parent 20474b1 commit 67778cd

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

app/design/frontend/Magento/luma/web/css/source/_forms.less

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,7 @@
9191
.select-styling() {
9292
.lib-css(appearance, none, 1);
9393
appearance: none;
94-
background: @select__background url('../images/select-bg.svg') no-repeat 100% 45%;
9594
background-size: 30px 60px;
96-
border: 1px solid @border-color__base;
97-
height: 32px;
98-
padding-right: 25px;
9995
text-indent: .01em;
10096
text-overflow: '';
10197

app/design/frontend/Magento/luma/web/css/source/_theme.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@
166166
// Forms
167167
// ---------------------------------------------
168168

169+
170+
// Select
171+
@select__background: @form-element-input__background url('../images/select-bg.svg') no-repeat 100% 45%;
172+
@select__border: 1px solid @border-color__base;
173+
@select__height: 32px;
174+
@select__padding: 4px 25px @indent__xs @indent__s;
175+
169176
// Form fieldset
170177
@form-fieldset-legend__font-size: 18px;
171178
@form-fieldset-legend__font-weight: @font-weight__light;

lib/web/css/source/lib/variables/_forms.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
@select__disabled__font-style: @form-element-input__disabled__font-style;
122122

123123
// Focus state
124-
@select__focus__background: @form-element-input__focus__background;
124+
@select__focus__background: false;
125125
@select__focus__border: @form-element-input__focus__border;
126126
@select__focus__color: @form-element-input__focus__color;
127127
@select__focus__font-style: @form-element-input__focus__font-style;

0 commit comments

Comments
 (0)