style: fix Tree cursor style (#46974)

* style: fix Tree cursor style

* fix lint
This commit is contained in:
afc163 2024-01-16 12:28:25 +08:00 committed by GitHub
parent 46abe90272
commit 14af2a77ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,6 +191,8 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
},
'&-draggable': {
cursor: 'grab',
[`${treeCls}-draggable-icon`]: {
// https://github.com/ant-design/ant-design/issues/41915
flexShrink: 0,
@ -242,9 +244,15 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
textAlign: 'center',
cursor: 'pointer',
userSelect: 'none',
transition: `all ${token.motionDurationSlow}`,
borderRadius: token.borderRadius,
'&-noop': {
cursor: 'default',
cursor: 'unset',
},
[`&:not(${treeCls}-switcher-noop):hover`]: {
backgroundColor: token.colorBgTextHover,
},
'&_close': {