With the new feature flag FEATURE_ARTICLE_TOOLS_MENU in place (T306609) we will begin work on the new page tools feature
The scope of this work is pinning the existing more menu. The pinning/hiding functionality should work similarly to the table of contents. No changes should be made to the contents of the menu.
prototype: https://vector-2022.web.app/Moth
TODO
- The pinning mechanism should share the same code as the table of contents so this task should be used to generalize that work.
- The more menu if empty is not shown
QA steps
Use the page tools feature flag query to test on the beta cluster ('?vectorpagetools=1')
- When the feature flag is disabled there are no visual changes
- When the feature flag is enabled, the more menu becomes pinnable to the right side of the screen.
- When the feature flag is enabled at the top of the menu is the label "pin menu to sidebar".
- When pinned, the menu appears in the right side of the screen
- When the main menu or TOC are in the left sidebar, the content should be left-anchored to the left sidebar
- When the left sidebar is empty and the right sidebar has the page tools menu in it, center the content + right sidebar as a block
- Landmark regions are preserved and accessible by screenreaders when a menu is pinned and unpinned
- Contents of pinned menu are immediately follows the menu toggle in the DOM so the contents are accessible to keyboard/screenreader users
- Ensure brackets in pinnable toggle buttons aren't read out to screenreaders.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T317897#8418529 |
2 | ✅ | T317897#8418529 |
3 | ✅ | T317897#8418529 |
4 | ✅ | T317897#8418529 |
5 | ✅ | T317897#8418529 |
6 | ✅ | T317897#8418529 |
7 | ✅ | T317897#8418529 |
8 | ✅ | T317897#8418529 |
9 | ✅ | T317897#8418529 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T317897#8434002 |
2 | ✅ | T317897#8434002 |
3 | ✅ | T317897#8434002 |
4 | ✅ | T317897#8434002 |
5 | ✅ | T317897#8434002 |
6 | ✅ | T317897#8434002 |
7 | ✅ | T317897#8434002 |
8 | ✅ | T317897#8434002 |
9 | ✅ | T317897#8434002 |