infima
infima copied to clipboard
tabs: active tab is missaligned with non active tab
tabs: active tab is missaligned with non active tab
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