Skip to content

Commit

Permalink
Merge pull request #1 from hitesh-wagento/2.1-develop-PR-port-15734
Browse files Browse the repository at this point in the history
[Backport] [Resolved : Styling <select> by changing less variables in Luma theme…
  • Loading branch information
hitesh-wagento authored Jun 5, 2018
2 parents 79613c0 + d3184ac commit 0e87e9e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 0 additions & 4 deletions app/design/frontend/Magento/luma/web/css/source/_forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,7 @@
.select-styling() {
.lib-css(appearance, none, 1);
appearance: none;
background: @select__background url('../images/select-bg.svg') no-repeat 100% 45%;
background-size: 30px 60px;
border: 1px solid @border-color__base;
height: 32px;
padding-right: 25px;
text-indent: .01em;
text-overflow: '';

Expand Down
7 changes: 7 additions & 0 deletions app/design/frontend/Magento/luma/web/css/source/_theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@
// Forms
// ---------------------------------------------


// Select
@select__background: @form-element-input__background url('../images/select-bg.svg') no-repeat 100% 45%;
@select__border: 1px solid @border-color__base;
@select__height: 32px;
@select__padding: 4px 25px @indent__xs @indent__s;

// Form fieldset
@form-fieldset-legend__font-size: 18px;
@form-fieldset-legend__font-weight: @font-weight__light;
Expand Down
2 changes: 1 addition & 1 deletion lib/web/css/source/lib/variables/_forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
@select__disabled__font-style: @form-element-input__disabled__font-style;

// Focus state
@select__focus__background: @form-element-input__focus__background;
@select__focus__background: false;
@select__focus__border: @form-element-input__focus__border;
@select__focus__color: @form-element-input__focus__color;
@select__focus__font-style: @form-element-input__focus__font-style;
Expand Down

0 comments on commit 0e87e9e

Please sign in to comment.