mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-13 04:53:11 +08:00
style: fix Tree cursor style (#46974)
* style: fix Tree cursor style * fix lint
This commit is contained in:
parent
46abe90272
commit
14af2a77ae
@ -191,6 +191,8 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
|
|||||||
},
|
},
|
||||||
|
|
||||||
'&-draggable': {
|
'&-draggable': {
|
||||||
|
cursor: 'grab',
|
||||||
|
|
||||||
[`${treeCls}-draggable-icon`]: {
|
[`${treeCls}-draggable-icon`]: {
|
||||||
// https://github.com/ant-design/ant-design/issues/41915
|
// https://github.com/ant-design/ant-design/issues/41915
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
@ -242,9 +244,15 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
userSelect: 'none',
|
userSelect: 'none',
|
||||||
|
transition: `all ${token.motionDurationSlow}`,
|
||||||
|
borderRadius: token.borderRadius,
|
||||||
|
|
||||||
'&-noop': {
|
'&-noop': {
|
||||||
cursor: 'default',
|
cursor: 'unset',
|
||||||
|
},
|
||||||
|
|
||||||
|
[`&:not(${treeCls}-switcher-noop):hover`]: {
|
||||||
|
backgroundColor: token.colorBgTextHover,
|
||||||
},
|
},
|
||||||
|
|
||||||
'&_close': {
|
'&_close': {
|
||||||
|
Loading…
Reference in New Issue
Block a user