Skip to content

Commit

Permalink
feat: remove opacity style of disabled html attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoyadmoon committed Apr 10, 2024
1 parent 723ba8b commit a32d4c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/styles/_states.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
pointer-events: none !important;
}

[disabled],
// only disable pointer events, but not apply opacity to prevent nested opacity
[disabled] {
pointer-events: none !important;
}
.#{$prefix-state}-disabled {
opacity: .3 !important;
pointer-events: none !important;
Expand Down

0 comments on commit a32d4c1

Please sign in to comment.