Skip to content

Commit

Permalink
fix: Pseudo class potential unsafe warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Palkovič committed Apr 7, 2022
1 parent c313cf8 commit 42853ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/src/blocks/Source.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -52,7 +52,7 @@ const SourceSkeletonPlaceholder = styled.div<{}>(({ theme }) => ({
marginTop: 1,
width: '60%',

'&:first-child': {
[`:first-child${ignoreSsrWarning}`]: {
margin: 0,
},
}));
Expand Down

0 comments on commit 42853ce

Please sign in to comment.