@@ -621,9 +621,13 @@ export class Menu {
621621 ) ,
622622 this . a11yVar < string > ( 'highlight' , ( value ) => this . setHighlight ( value ) ) ,
623623 this . a11yVar < string > ( 'backgroundColor' ) ,
624- this . a11yVar < string > ( 'backgroundOpacity' , ( value ) => this . setAlpha ( 'bg' , value ) ) ,
624+ this . a11yVar < string > ( 'backgroundOpacity' , ( value ) =>
625+ this . setAlpha ( 'bg' , value )
626+ ) ,
625627 this . a11yVar < string > ( 'foregroundColor' ) ,
626- this . a11yVar < string > ( 'foregroundOpacity' , ( value ) => this . setAlpha ( 'fg' , value ) ) ,
628+ this . a11yVar < string > ( 'foregroundOpacity' , ( value ) =>
629+ this . setAlpha ( 'fg' , value )
630+ ) ,
627631 this . a11yVar < boolean > ( 'subtitles' ) ,
628632 this . a11yVar < boolean > ( 'viewBraille' ) ,
629633 this . a11yVar < boolean > ( 'voicing' ) ,
@@ -1335,7 +1339,11 @@ export class Menu {
13351339 protected setAlpha ( type : string , value : string ) {
13361340 if ( MathJax . _ ?. a11y ?. explorer ) {
13371341 const alpha = parseInt ( value ) / 100 ;
1338- MathJax . _ . a11y . explorer . Region . LiveRegion . setAlpha ( type , alpha , this . document . document ) ;
1342+ MathJax . _ . a11y . explorer . Region . LiveRegion . setAlpha (
1343+ type ,
1344+ alpha ,
1345+ this . document . document
1346+ ) ;
13391347 }
13401348 }
13411349
0 commit comments