Merge pull request #17911 from storybookjs/fix-pseudo-class-potential-unsafe-warning

UI: Pseudo class potential unsafe warning
This commit is contained in:
Michael Shilman 2022-04-08 09:47:29 +08:00 committed by GitHub
commit 7366e9b28f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
import React, { ComponentProps, FunctionComponent } from 'react';
import { styled, ThemeProvider, convert, themes } from '@storybook/theming';
import { styled, ThemeProvider, convert, themes, ignoreSsrWarning } from '@storybook/theming';
import { EmptyBlock } from './EmptyBlock';
import { SyntaxHighlighter } from '../syntaxhighlighter/lazy-syntaxhighlighter';
@ -52,7 +52,7 @@ const SourceSkeletonPlaceholder = styled.div<{}>(({ theme }) => ({
marginTop: 1,
width: '60%',
'&:first-child': {
[`&:first-child${ignoreSsrWarning}`]: {
margin: 0,
},
}));