mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
Merge pull request #7861 from XYShaoKang/next
Add the ignore `first-child` selector warning flag
This commit is contained in:
commit
a45bc685b2
@ -13,6 +13,9 @@ 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 +76,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