Background
Since we are removing the default scrollbar in cases where the ToC is longer than the available space, we would like to visually indicate the ToC is scrollable in another way
Acceptance criteria
- Add indicator that the ToC is scrollable
- Indicator should only appear when the ToC is scrollable
QA steps
- Navigate to a page with a long TOC in modern vector using the feature flag to see sticky TOC
- patchdemo link: https://patchdemo.wmflabs.org/wikis/e440050eb8/wiki/Barack_Obama?useskin=vector-2022&tableofcontents=1
- beta cluster link: TK
- Open some header links in TOC to make TOC content longer than viewport height and scroll down a little ways
- Note transparent fade at bottom and no scrollbar
- Note TOC still scrollable
- Resize windows to see fade at bottom
- Tested in Chrome, Firefox, Safari, Edge
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T302076#7818378 |
2 | ✅ | T302076#7818378 |
3 | ✅ | T302076#7818378 |
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T302076#7849932 |
2 | ✅ | T302076#7849932 |
3 | ✅ | T302076#7849932 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T302076#7859443 |
2 | ✅ | T302076#7859443 |
3 | ✅ | T302076#7859443 |