Skip to content

Commit

Permalink
Fix clearable padding style
Browse files Browse the repository at this point in the history
Adjust padding-right because prevent text from overlapping `×` button.
  • Loading branch information
mmiyauchi committed Jul 11, 2017
1 parent 6c0ee59 commit 2fd6e91
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 2fd6e91

Please sign in to comment.