Invert mathematical formulas in visual editor

Add the skin-invert class to latex symbols (insert chemical formula and
math formula dialogues) so that they appear legible in night mode.  This
is likely the only way we can accomplish this until mathml is fully
rolled out, at which I believe this will no longer be necessary

Bug: T366737
Change-Id: Ia0dfa4ab684f5205d109da7f9aefad927be70eb0
This commit is contained in:
Steph Toyofuku 2024-06-25 14:30:30 -07:00
parent e7b4cbd67b
commit 17ac038ae4

View file

@ -160,6 +160,10 @@ ve.ui.MWLatexDialog.prototype.initialize = function () {
if ( symbol.largeLayout ) {
classes.push( 've-ui-mwLatexDialog-symbol-largeLayout' );
}
// T366737 - make sure the symbols appear in night mode
classes.push( 'skin-invert' );
symbol.label = '';
symbol.classes = classes;