mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
refactor: Tree checkbox style (#35389)
* fix: Checkbox inner disabled color * refactor: Tree checkbox style * refactor: adjust tree checkbox span * refactor: adjust tree checkbox span * refactor: remove useless `&`
This commit is contained in:
parent
7460c95b65
commit
6b6c8cb6b1
@ -226,7 +226,7 @@ export const genCheckboxStyle: GenerateStyle<CheckboxToken> = token => {
|
||||
borderColor: token.colorBorder,
|
||||
|
||||
'&:after': {
|
||||
borderColor: token.colorBorder,
|
||||
borderColor: token.colorTextDisabled,
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -256,7 +256,11 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
|
||||
},
|
||||
|
||||
// >>> Title
|
||||
[`& ${treeCls}-node-content-wrapper`]: {
|
||||
// add `${treeCls}-checkbox + span` to cover checkbox `${checkboxCls} + span`
|
||||
[`
|
||||
${treeCls}-node-content-wrapper,
|
||||
${treeCls}-checkbox + span
|
||||
`]: {
|
||||
display: 'flex',
|
||||
flexWrap: 'nowrap',
|
||||
position: 'relative',
|
||||
@ -467,6 +471,8 @@ export const genTreeStyle = (prefixCls: string, token: DerivativeToken): CSSInte
|
||||
|
||||
// ============================== Export ==============================
|
||||
export default genComponentStyleHook('Tree', (token, { prefixCls }) => [
|
||||
getCheckboxStyle(`${prefixCls}-checkbox`, token),
|
||||
{
|
||||
[token.componentCls]: getCheckboxStyle(`${prefixCls}-checkbox`, token),
|
||||
},
|
||||
genTreeStyle(prefixCls, token),
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user