Skip to content

Commit

Permalink
fix: remove scrollbar from org nr field
Browse files Browse the repository at this point in the history
  • Loading branch information
pooriamehregan committed May 3, 2024
1 parent 5028de0 commit 7e43d38
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,20 @@
margin-top: 3rem;
align-self: flex-start;
}

.orgNumberField {
composes: textFieldHalfWith;
}

/* Chrome, Safari, Edge, Opera */
.orgNumberField input::-webkit-outer-spin-button,
.orgNumberField input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

/* Firefox */
.orgNumberField * input[type=number] {
-moz-appearance: textfield;
}

Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const DataHunterForm = ({ dictionary }: Props) => {
name='organizationNumber'
required
type='number'
className={styles.textFieldHalfWith}
className={styles.orgNumberField}
error={extractErrorMessages('organizationNumber', state, dictionary)}
label={
<LabelWithTag
Expand Down

0 comments on commit 7e43d38

Please sign in to comment.