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.
[] 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.