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
Insiders (2022-01-07): Linked content tabs flickering/jumping #3445
Comments
Thanks for reporting!
Jup, this was already reported in #3440 😊 |
Oh, dang it, I missed that. But the first part (which is the main problem for me) was not covered there, right? If you see all this is part of the same problem, feel free to close this one! 🤓 |
Nope, the first part is new. Thanks for providing such a detailed report. I can already reproduce it and will try to find the root cause. |
Awesome, thanks! 🙇 |
Okay, I think I've got a fix in Ohne.Titel.mp4If you reinstall Insiders, the issue should be gone. |
Released as part of 8.1.4-insiders-4.5.2. |
Amazing, that was so fast! Thank you! 👏🙇🎉 |
as this was solved: squidfunk/mkdocs-material#3445 🎉
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
Note: This is only related to linked content tabs, configured with
content.tabs.link
, and so, only happens in MkDocs Insiders.On some occasions, when using multiple tab groups with linked tabs, some of the tabs can't be directly opened. When clicking them they flicker and don't change (as if they changed to the intended tab and then back again in a couple of milliseconds).
I don't know the reason yet, I have a minimal reproduction example, but I have no clue how things are related.
Expected behaviour
When clicking Tab 2 in the second group I would expect it to switch to Tab 2. I would also expect it to switch group one to Tab 2.
Actual behaviour
When clicking Tab 2 on the second group, it flickers and never changes, although the indicator of the current tab in the second group does change.
Steps to reproduce
mkdocs.yml
:docs/index.md
:Serve it with
mkdocs serve
.Click Tab 2 on the second group of tabs.
It flickers but doesn't change. 😔
Bonus:
Remove this line from
docs/index.md
:...and even though the line is in tab group one, the issue disappears almost completely. 😱
I say "almost completely" because now the tabs can be switched, and are in sync. And the tab name text highlighting is in sync too. But the little line under the tab text in other tab groups is not in sync with the text highlighting:
Here I clicked the "Tab 2" of the first group. The "Tab 2" of the second group was also selected, perfect. And the "Tab 2" text in the second group was highlighted, perfect. But the blue underline of the second group stayed under "Tab 1".
This last part is a small detail, but not a blocker as the first part.
Package versions
python --version
: Python 3.7.5mkdocs --version
: version 1.2.3pip show mkdocs-material | grep -E ^Version
: Version: 8.1.4+insiders.4.5.1Configuration
System information
The text was updated successfully, but these errors were encountered: