MediaWiki:Gadget-dark-mode-toggle.js: Difference between revisions

Content deleted Content added
 
'#pt-darkmode span:not(.mw-ui-icon)' ; see talk
Line 29:
 
// Toggle portlet link label and tooltip
var labelSelector = ['vector', 'minerva'].includes(mw.config.get('skin')) ? '#pt-darkmode span:not(.mw-ui-icon)' : '#pt-darkmode a';
$(labelSelector).text(mw.msg('darkmode-turn-' + onOrOff + '-label'));
$('#pt-darkmode a').attr('title', mw.msg('darkmode-turn-' + onOrOff + '-tooltip'));