fix: style parse error (#38742)

This commit is contained in:
二货爱吃白萝卜 2022-11-19 21:49:11 +08:00 committed by GitHub
parent 5fa55e291d
commit c511557e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 7 deletions

View File

@ -234,7 +234,7 @@ const genFormItemStyle: GenerateStyle<FormToken> = (token) => {
flexDirection: 'column', flexDirection: 'column',
flexGrow: 1, flexGrow: 1,
[`&:first-child:not([class^=~"'${rootPrefixCls}-col-'"]):not([class*=~"' ${rootPrefixCls}-col-'"])`]: [`&:first-child:not([class^="'${rootPrefixCls}-col-'"]):not([class*="' ${rootPrefixCls}-col-'"])`]:
{ {
width: '100%', width: '100%',
}, },

View File

@ -738,10 +738,9 @@ const genSearchInputStyle: GenerateStyle<InputToken> = (token: InputToken) => {
'&:hover, &:focus': { '&:hover, &:focus': {
borderColor: token.colorPrimaryHover, borderColor: token.colorPrimaryHover,
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(.@{ant-prefix}-btn-primary)`]: [`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
{ borderInlineStartColor: token.colorPrimaryHover,
borderInlineStartColor: token.colorPrimaryHover, },
},
}, },
}, },

View File

@ -44,7 +44,7 @@ function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
transition: `all ${token.motionDurationSlow}`, transition: `all ${token.motionDurationSlow}`,
// Firefox inline-block position calculation is not same as Chrome & Safari. Patch this: // Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:
'@supports (-moz-appearance: meterbar) &': { '@supports (-moz-appearance: meterbar)': {
lineHeight: `${selectHeightWithoutBorder}px`, lineHeight: `${selectHeightWithoutBorder}px`,
}, },
}, },

View File

@ -423,7 +423,7 @@ export const genDirectoryStyle = (token: TreeToken): CSSObject => {
background: 'transparent', background: 'transparent',
}, },
[`&.${treeCls}-node-selected`]: { [`&${treeCls}-node-selected`]: {
color: token.colorTextLightSolid, color: token.colorTextLightSolid,
background: 'transparent', background: 'transparent',
}, },