diff --git a/.gitignore b/.gitignore index 54b212c74d..5be4d3cb0b 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,5 @@ __image_snapshots__/ /jest-stare /imageSnapshots /imageDiffSnapshots + +.devcontainer* diff --git a/components/result/style/index.tsx b/components/result/style/index.tsx index ecae3015c5..f7413f38bd 100644 --- a/components/result/style/index.tsx +++ b/components/result/style/index.tsx @@ -42,10 +42,10 @@ const genBaseStyle = ( [`${resultCls} ${resultCls}-icon`]: { marginBottom: token.padding * 1.5, textAlign: 'center', - }, - [`${resultCls} ${resultCls}-icon > ${dotIconPrefixCls}`]: { - fontSize: token.resultIconFontSize, + [`& > ${dotIconPrefixCls}`]: { + fontSize: token.resultIconFontSize, + }, }, [`${resultCls} ${resultCls}-title`]: { @@ -73,14 +73,14 @@ const genBaseStyle = ( [`${resultCls} ${resultCls}-extra`]: { margin: token.resultExtraMargin, textAlign: 'center', - }, - [`${resultCls} ${resultCls}-extra > *`]: { - marginInlineEnd: token.paddingXS, - }, + '& > *': { + marginInlineEnd: token.paddingXS, - [`${resultCls} ${resultCls}-extra > *:last-child`]: { - marginInlineEnd: 0, + '&:last-child': { + marginInlineEnd: 0, + }, + }, }, });