Skip to content

Commit 457f52c

Browse files
authored
Merge pull request #479 from MatthewKennedy/fix/scss-css-issue
Fix scss picking up css max
2 parents 7954b71 + 0983b2c commit 457f52c

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/plugins/clear_button/plugin.scss

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
21
.plugin-clear_button{
3-
42
--ts-pr-clear-button: 1em;
53

6-
74
.clear-button{
85
opacity: 0;
96
position: absolute;
@@ -20,18 +17,15 @@
2017
&.single .clear-button{
2118

2219
@if variable-exists(select-padding-dropdown-item-x) {
23-
right: max( var(--ts-pr-caret), #{$select-padding-dropdown-item-x});
20+
right: Max( var(--ts-pr-caret), #{$select-padding-dropdown-item-x});
2421
}
2522
@else{
26-
right: max( var(--ts-pr-caret), calc(#{$select-padding-x} - #{$select-padding-item-x}) );
23+
right: Max( var(--ts-pr-caret), calc(#{$select-padding-x} - #{$select-padding-item-x}) );
2724
}
2825
}
2926

3027
&.focus.has-items .clear-button,
3128
&:not(.disabled):hover.has-items .clear-button{
3229
opacity: 1;
3330
}
34-
35-
36-
3731
}

src/scss/tom-select.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ $select-spinner-border-color: $select-color-border !default;
9999
}
100100

101101
.#{$select-ns}-control {
102-
padding-right: max( var(--ts-pr-min), calc( var(--ts-pr-clear-button) + var(--ts-pr-caret)) ) !important;
102+
padding-right: Max( var(--ts-pr-min), calc( var(--ts-pr-clear-button) + var(--ts-pr-caret)) ) !important;
103103
}
104104

105105
@mixin ts-caret(){

0 commit comments

Comments
 (0)