Skip to content

Commit 40a1565

Browse files
#7572 Fix (input-file) unify cursor styling and prevent focus when disabled
1 parent 9672cd8 commit 40a1565

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)