File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 77 class ="tab-longname "> Compare </ span > WebViews</ a >
88 < button type ="button " id ="theme-toggle " class ="theme-toggle " aria-label ="Switch to dark mode " aria-live ="polite ">
99 < span class ="theme-toggle-icon " aria-hidden ="true "> ☀️</ span >
10- < span class ="visually-hidden "> Current theme: Light mode</ span >
10+ < span id =" theme-toggle-status " class ="visually-hidden "> Current theme: Light mode</ span >
1111 </ button >
1212 </ div >
1313 < section class ="search-wrapper ">
Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ class Theme {
8080
8181 updateAriaLabel ( label , currentTheme ) {
8282 this . button . setAttribute ( 'aria-label' , label ) ;
83-
84- const visuallyHiddenText = this . button . querySelector ( '.visually-hidden ' ) ;
83+
84+ const visuallyHiddenText = this . button . querySelector ( '#theme-toggle-status ' ) ;
8585 if ( visuallyHiddenText ) {
8686 visuallyHiddenText . textContent = `Current theme: ${ currentTheme } ` ;
8787 }
You can’t perform that action at this time.
0 commit comments