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

Implement Linked Tabs #177

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

patrickd-galil
Copy link

This implements one of my favorite features in Material for MkDocs.

By adding the linked class to your tabbed div, any other sets of the same tabs will stay in sync when you change tabs. This is site-wide.

Also, the resize logic didn't seem to be compatible with my approach.

I don't think this code is super high quality (I'm not a web developer), but hopefully this is a good starting point, as I think this feature can be super useful. In my case, I have a bunch of examples that are implemented in multiple languages, and I don't want readers to have to choose their language more than once.

@jothepro jothepro self-requested a review February 10, 2025 21:01
@jothepro jothepro added the enhancement New feature or request label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants