Merge pull request #7861 from XYShaoKang/next

Add the ignore `first-child` selector warning flag
This commit is contained in:
Norbert de Langen 2019-08-26 23:14:27 +02:00 committed by GitHub
commit a45bc685b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,