Add the ignore first-child selector warning flag

This commit is contained in:
ShaoKang 2019-08-26 06:15:53 +08:00 committed by GitHub
parent 9f0ed6ed2a
commit eabc154397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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