Fix tabs offset

Summary: Tabs have a weird negative offsite in the mobile config section (they have everywhere by default, to escape their containers in a mac-style but it does hide them in this specific case)

Reviewed By: priteshrnandgaonkar

Differential Revision: D18448191

fbshipit-source-id: 792daa5a3ef1aa91df730bd185124076471e42d3
This commit is contained in:
Michel Weststrate
2019-11-13 08:34:45 -08:00
committed by Facebook Github Bot
parent 989b32c7b9
commit 33a91b5e0f

View File

@@ -155,8 +155,14 @@ export default function Tabs(props: {
* Elements to insert after all tabs in the tab list.
*/
after?: Array<React.ReactNode>;
/**
* By default tabs are rendered in mac-style tabs, with a negative offset.
* By setting classic mode the classic style is rendered.
*/
classic?: boolean;
}) {
const tabsContainer = useContext(TabsContext);
const tabsContainer =
props.classic === true ? false : useContext(TabsContext);
const {onActive} = props;
const active: string | undefined =