mediawiki-skins-Vector/resources/skins.vector.AB.styles.less
Clare Ming eb597645c3 Refactor TOC A/B test to bucket users on backend
- Include temporary feature requirement for TOC A/B test.
  - Assumes 100% of logged-in users with even/odd user ids
  being assigned to treatment/control buckets respectively.
  - Sampling rates passed in by config are not considered
  during bucketing.
- Update hook for adding needed TOC A/B test body classes.
- Add test for temp feature.

Note: the temporary feature requirement and associated hooks
should be removed once the 2nd TOC A/B test concludes.

Bug: T313435
Change-Id: If9c75235614af289cd50182baab29bec3155eb81
2022-08-08 15:50:28 -06:00

13 lines
445 B
Plaintext

.skin-vector-toc-experiment-control .mw-table-of-contents-container,
.skin-vector-toc-experiment-control #vector-toc-collapsed-button,
body:not( .skin-vector-toc-experiment-control ) #toc {
// This trumps any layout rules e.g. vector-layout-grid
/* stylelint-disable-next-line declaration-no-important */
display: none !important;
}
// T313435 Show legacy toc for control group.
.skin-vector-toc-experiment-control #toc {
display: table;
}