Skip to content

Commit

Permalink
fix(DatePicker): fix datePicker disabled hover style (ant-design#45940)
Browse files Browse the repository at this point in the history
* fix(DatePicker): fix datePicker hover style

* feat: remove hover css

* fix: lint

* fix: lint

* feat: remove comoponentCls

* feat: 恢复

* feat: use [disabled]

---------

Co-authored-by: afc163 <[email protected]>
  • Loading branch information
crazyair and afc163 authored Nov 27, 2023
1 parent 6b8e080 commit 2938a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/input/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const genDisabledStyle = (token: InputToken): CSSObject => ({
cursor: 'not-allowed',
opacity: 1,

'&:hover': {
'&:hover:not([disabled])': {
...genHoverStyle(
mergeToken<InputToken>(token, {
hoverBorderColor: token.colorBorder,
Expand Down

0 comments on commit 2938a8c

Please sign in to comment.