Skip to content

Commit

Permalink
fix(input, input-number, input-text): fix input icons not displaying …
Browse files Browse the repository at this point in the history
…properly in Firefox (#5475)

#5417
  • Loading branch information
jcfranco authored Oct 14, 2022
1 parent d81065d commit 3d6ba64
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/input-number/input-number.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@
@apply transition-default
pointer-events-none
absolute
block;
block

z-default; // needed for firefox to display the icon properly
}

.clear-button {
Expand Down
4 changes: 3 additions & 1 deletion src/components/input-text/input-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ input:focus {
@apply transition-default
pointer-events-none
absolute
block;
block

z-default; // needed for firefox to display the icon properly
}

// hide browser default clear
Expand Down
5 changes: 5 additions & 0 deletions src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@
block;
}

.icon,
.resize-icon-wrapper {
@apply z-default; // needed for firefox to display the icon properly
}

// hide browser default clear

input[type="text"]::-ms-clear,
Expand Down

0 comments on commit 3d6ba64

Please sign in to comment.