The expand all sections setting shows at low resolutions on https://en.m.wikipedia.org/wiki/Special:MobileOptions and the code lives in MobileFrontend (resources/dist/mobile.special.mobileoptions.scripts.js)
{F41417431}
In preparation for introducing the new client preference interface we will need to update this to use the client preferences API.
# TODO
Following the discussion in T350418.
[x] Finalize support for toggle switches in the @wikimedia/mediawiki.skins.clientpreferences library. (e.g. https://gerrit.wikimedia.org/r/991442)
[] Update the existing code to use the new @wikimedia/mediawiki.skins.clientpreferences library.
[] Remove the OOUI font size controller dropdown in favor of the @wikimedia/mediawiki.skins.clientpreferences produced radio buttons
[] The control for font size should render as radio buttons rather than a dropdown
[] The expand all sections toggle should render as a toggle switch.
[] Replace the existing AMC toggle with the Codex equivalent for consistency.
# QA steps
[] Visiting Special:MobileOptions no night mode options should be available.
(You will require a separate test environment for the following tests) and is blocked on T356074.
After visiting Special:MobileOptions:
[] The default is light mode for anonymous users
[] The default is light mode for logged in users
[] I should see options to change night mode on Special:MobileOptions
[] When enabled, certain parts of the UI should reflect a darker color theme. Note: not all UI is expected to be in night mode at this point so look for any indication that a night mode has been enabled.
[] When auto mode is selected, night mode is enabled when configured at the operating system level.
[] When light mode is selected, I should get the default experience.
[] The controls work for anonymous users and logged in users
[] The user preference should only impact the Minerva skin (turning on dark mode for Minerva will not turn on dark mode for Vector)