Skip to content

Commit

Permalink
Merge pull request #7861 from XYShaoKang/next
Browse files Browse the repository at this point in the history
Add the ignore `first-child` selector warning flag
  • Loading branch information
ndelangen authored Aug 26, 2019
2 parents 1cdc14b + e10fa07 commit a45bc68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/components/src/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a45bc68

Please sign in to comment.