Skip to content

Commit

Permalink
Hide spinner at hover
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag committed May 24, 2024
1 parent 56141d4 commit d5ff37c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/berlin/src/components/input/Input.styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ export const StyledInput = styled.input`
color: var(--color-gray);
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type='number'] {
-moz-appearance: textfield; /* Firefox */
appearance: textfield; /* Standard property */
-moz-appearance: textfield;
}
input[type='number']:hover,
input[type='number']:focus {
-moz-appearance: textfield;
}
`;

0 comments on commit d5ff37c

Please sign in to comment.