mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Merge pull request #17911 from storybookjs/fix-pseudo-class-potential-unsafe-warning
UI: Pseudo class potential unsafe warning
This commit is contained in:
commit
7366e9b28f
@ -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,
|
||||
},
|
||||
}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user