Skip to content

Commit bfd616e

Browse files
authored
Fix (input-file) unify cursor styling and prevent focus when disabled (#7619)
2 parents 873d6d6 + c25283c commit bfd616e

File tree

1 file changed

+9
-1
lines changed
  • packages/components/src/components/input-file

1 file changed

+9
-1
lines changed

packages/components/src/components/input-file/style.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,16 @@
2020
opacity: 0;
2121
cursor: pointer;
2222

23-
&:disabled {
23+
&::-webkit-file-upload-button,
24+
&::file-selector-button {
25+
cursor: pointer;
26+
}
27+
28+
&:disabled,
29+
&:disabled::-webkit-file-upload-button,
30+
&:disabled::file-selector-button {
2431
cursor: not-allowed;
32+
pointer-events: none;
2533
}
2634
}
2735

0 commit comments

Comments
 (0)