Skip to content

Commit 729d03b

Browse files
authored
Update _spinbutton.scss
1 parent 559e729 commit 729d03b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/components/form-spinbutton/_spinbutton.scss

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
text-align: center;
33
// Quick way to get end buttons rounded on outside edges
44
overflow: hidden;
5-
// Hide validation icon
5+
// Hide validation icon, as there is no room for it
66
background-image: none;
77

88
&.flex-column {
@@ -14,6 +14,7 @@
1414
font-size: inherit;
1515
outline: 0;
1616
border: 0;
17+
background-color: transparent;
1718

1819
> div {
1920
min-width: 2em;
@@ -31,6 +32,10 @@
3132
line-height: 1;
3233
box-shadow: none !important;
3334

35+
&:disabled {
36+
pointer-events: none;
37+
}
38+
3439
&:hover:not(:disabled) > div {
3540
transform: scale(1.25);
3641
}
@@ -58,11 +63,12 @@
5863
}
5964
}
6065

61-
&.disabled
66+
&.disabled,
6267
&.readonly {
63-
&,
64-
output {
65-
background-color: $input-disabled-bg;
66-
}
68+
background-color: $input-disabled-bg;
69+
}
70+
71+
&.disabled {
72+
pointer-events: none;
6773
}
6874
}

0 commit comments

Comments
 (0)