Skip to content

Commit

Permalink
fix: style parse error (#38742)
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Nov 19, 2022
1 parent 5fa55e2 commit c511557
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/form/style/index.tsx
Expand Up @@ -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%',
},
Expand Down
7 changes: 3 additions & 4 deletions components/input/style/index.tsx
Expand Up @@ -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,
},
},
},

Expand Down
2 changes: 1 addition & 1 deletion components/select/style/single.tsx
Expand Up @@ -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`,
},
},
Expand Down
2 changes: 1 addition & 1 deletion components/tree/style/index.tsx
Expand Up @@ -423,7 +423,7 @@ export const genDirectoryStyle = (token: TreeToken): CSSObject => {
background: 'transparent',
},

[`&.${treeCls}-node-selected`]: {
[`&${treeCls}-node-selected`]: {
color: token.colorTextLightSolid,
background: 'transparent',
},
Expand Down

0 comments on commit c511557

Please sign in to comment.