Merge "Drop unnecessary watchstar icon classes on toggle"

This commit is contained in:
jenkins-bot 2022-11-15 00:38:03 +00:00 committed by Gerrit Code Review
commit 63dbf2ad06

View file

@ -6,6 +6,10 @@ module.exports = function () {
return;
}
watchElement.classList.remove(
// Vector attaches two icon classes to the element.
// Remove the mw-ui-icon one rather than managing both.
'mw-ui-icon-star',
'mw-ui-icon-unStar',
'mw-ui-icon-wikimedia-unStar',
'mw-ui-icon-wikimedia-star',
'mw-ui-icon-wikimedia-halfStar'