Skip to content

Commit

Permalink
Merge pull request JedWatson#1866 from mmiyauchi/fix-clearable-style
Browse files Browse the repository at this point in the history
Fix clearable padding style
  • Loading branch information
JedWatson authored Sep 12, 2017
2 parents 195964a + 2fd6e91 commit bd8fdd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions less/control.less
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
white-space: nowrap;
}

.has-value.is-clearable.Select--single > .Select-control .Select-value {
padding-right: (@select-clear-width + @select-arrow-width * 5);
}

.has-value.Select--single > .Select-control .Select-value,
.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value {
.Select-value-label {
Expand Down
4 changes: 4 additions & 0 deletions scss/control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
white-space: nowrap;
}

.has-value.is-clearable.Select--single > .Select-control .Select-value {
padding-right: ($select-clear-width + $select-arrow-width * 5);
}

.has-value.Select--single > .Select-control .Select-value,
.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value {
.Select-value-label {
Expand Down

0 comments on commit bd8fdd7

Please sign in to comment.