We have made a minor ID change to #p-namespaces within the Vector 2022 skin. Gadgets styling this element should considering updating CSS rules that target #p-namespaces to also target #p-associated-pages. Note, related to this change, is that on Vector 2022 on special pages where only one tab is shown the tab will disappear (T313409).
This change will go out in the train that is deployed the week beginning 5th September 2022 (should be on all wikis on 8th September if all goes to plan).
Since mw.util.addPortletLink is a stable API, any gadgets adding to the p-namespaces menu using this gadget will be unaffected by this change. If you are appending directly to #p-namespaces element please update your code to reference mw.util.addPortletLink and pay attention to any console warnings.
Examples of impacted code and solutions
// old #p-namespaces { display: none; } // consider #p-associated-pages, #p-namespaces { display: none; }
mw.util.addPortletLink( 'p-namespaces', '#', '' ); // no change - this will work as usual
// before document.getElementById("p-namespaces").style.visibility = 'hidden' // consider var menu = document.querySelector("#left-navigation #p-namespaces") || document.getElementById("p-associated-pages"); menu.style.visibility = 'hidden'
IF in doubt, please test your script on https://en.wikipedia.beta.wmflabs.org/