💄(react) hide input number arrows

During our last meeting regarding the QA the designer told us to remove
the arrows on the number input. We can still change the value with the
keyboard arrows, so it does not cause a11y issues.
This commit is contained in:
Nathan Vasse
2023-09-04 15:40:39 +02:00
committed by NathanVss
parent 21b6d77913
commit c90f66f0cd
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": minor
---
hide input number arrows

View File

@@ -34,6 +34,15 @@
align-items: center;
}
&::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
&[type=number] {
-moz-appearance: textfield;
}
&--medium {
min-width: 150px;
}