@@ -618,9 +618,13 @@ export class Menu {
618618 ) ,
619619 this . a11yVar < string > ( 'highlight' , ( value ) => this . setHighlight ( value ) ) ,
620620 this . a11yVar < string > ( 'backgroundColor' ) ,
621- this . a11yVar < string > ( 'backgroundOpacity' , ( value ) => this . setAlpha ( 'bg' , value ) ) ,
621+ this . a11yVar < string > ( 'backgroundOpacity' , ( value ) =>
622+ this . setAlpha ( 'bg' , value )
623+ ) ,
622624 this . a11yVar < string > ( 'foregroundColor' ) ,
623- this . a11yVar < string > ( 'foregroundOpacity' , ( value ) => this . setAlpha ( 'fg' , value ) ) ,
625+ this . a11yVar < string > ( 'foregroundOpacity' , ( value ) =>
626+ this . setAlpha ( 'fg' , value )
627+ ) ,
624628 this . a11yVar < boolean > ( 'subtitles' ) ,
625629 this . a11yVar < boolean > ( 'viewBraille' ) ,
626630 this . a11yVar < boolean > ( 'voicing' ) ,
@@ -1332,7 +1336,11 @@ export class Menu {
13321336 protected setAlpha ( type : string , value : string ) {
13331337 if ( MathJax . _ ?. a11y ?. explorer ) {
13341338 const alpha = parseInt ( value ) / 100 ;
1335- MathJax . _ . a11y . explorer . Region . LiveRegion . setAlpha ( type , alpha , this . document . document ) ;
1339+ MathJax . _ . a11y . explorer . Region . LiveRegion . setAlpha (
1340+ type ,
1341+ alpha ,
1342+ this . document . document
1343+ ) ;
13361344 }
13371345 }
13381346
0 commit comments