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',
flexGrow: 1,
[`&:first-child:not([class^=~"'${rootPrefixCls}-col-'"]):not([class*=~"' ${rootPrefixCls}-col-'"])`]:
[`&:first-child:not([class^="'${rootPrefixCls}-col-'"]):not([class*="' ${rootPrefixCls}-col-'"])`]:
{
width: '100%',
},

View File

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

View File

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

View File

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