infima icon indicating copy to clipboard operation
infima copied to clipboard

tabs: active tab is missaligned with non active tab

Open armano2 opened this issue 3 years ago • 1 comments

tabs: active tab is missaligned with non active tab

image

armano2 avatar Mar 17 '21 13:03 armano2

just noting, it doesn't seem to be related to active tab; rather the margin top is used for spacing out list items in markdown generated. seems more generally an issue with horizontal lists. https://github.com/facebookincubator/infima/blob/9e0a10b921bde64e1d92740e2521ed20fc590fbe/packages/core/styles/content/markdown.pcss#L95-L97

Docusaurus gets around this with its Tabs with a margin-top: 0 !important for tab items, although that's probably not an ideal solution. https://github.com/facebook/docusaurus/blob/902aad55bbabd0609d40dd1f9a8630e633f31d5a/packages/docusaurus-theme-classic/src/theme/Tabs/styles.module.css#L8-L10

duanwilliam avatar Apr 04 '21 17:04 duanwilliam