mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
Add the ignore first-child
selector warning flag
This commit is contained in:
parent
9f0ed6ed2a
commit
eabc154397
@ -13,6 +13,8 @@ import { Placeholder } from '../placeholder/placeholder';
|
||||
import { FlexBar } from '../bar/bar';
|
||||
import { TabButton } from '../bar/button';
|
||||
|
||||
const ignoreSsrWarning = '/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */'
|
||||
|
||||
export interface WrapperProps {
|
||||
bordered?: boolean;
|
||||
absolute?: boolean;
|
||||
@ -73,7 +75,7 @@ const Content = styled.div<ContentProps>(
|
||||
bottom: 0,
|
||||
top: 40,
|
||||
overflow: 'auto',
|
||||
'& > *:first-child': {
|
||||
['& > *:first-child' + ignoreSsrWarning]: {
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
right: 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user