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 c96eb64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/styles/_states.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
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 c96eb64

Please sign in to comment.