Description
Currently when the sticky header appears, the TOC jumps down. Note: this only happens if you are logged-in (because logged-out people do not get a sticky header).
To-do
.mw-table-of-contents-container starts out with top: 0. When the sticky header appears some new classes get added and override the top value to top: 3.125rem !important. I think the easiest fix would be, for logged-in only, to set the initial value of top to match the value of top when the sticky header appears (i.e. 3.125rem !important).
Before & after comparison
before (TOC jumps) | after (TOC doesn't jump) |
---|---|
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T314330#8272583 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T314330#8272597 |