mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 15:16:56 +00:00
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:
parent
e7b4cbd67b
commit
17ac038ae4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue