Skip to content

Commit

Permalink
Update(front-end): Disabled wheel on number input using css.
Browse files Browse the repository at this point in the history
  • Loading branch information
Motouom committed Apr 18, 2024
1 parent 85dfd72 commit ae34c48
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions power-pay-frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ a:hover {
}

body {
background-color: white;
margin: 0;
display: flex;
place-items: center;
Expand Down Expand Up @@ -64,4 +65,17 @@ button:focus-visible {
button {
background-color: #f9f9f9;
}
}

/* disable wheel on number input */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

/* Firefox */
input[type=number] {
appearance: textfield;
}

0 comments on commit ae34c48

Please sign in to comment.