Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabs: active tab is missaligned with non active tab #102

Open
armano2 opened this issue Mar 17, 2021 · 1 comment
Open

tabs: active tab is missaligned with non active tab #102

armano2 opened this issue Mar 17, 2021 · 1 comment

Comments

@armano2
Copy link

armano2 commented Mar 17, 2021

tabs: active tab is missaligned with non active tab

image

@duanwilliam
Copy link

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.

& + li {
margin-top: var(--ifm-list-item-margin);
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants