remove label references
This commit is contained in:
parent
c0f7eb5df3
commit
0bb42848d3
1 changed files with 0 additions and 4 deletions
|
|
@ -1,6 +1,4 @@
|
|||
const storageKey = 'theme-preference';
|
||||
const lightLabel = '{{ meta.themeSwitch.light }}';
|
||||
const darkLabel = '{{ meta.themeSwitch.dark }}';
|
||||
const themeColors = {
|
||||
dark: '{{ meta.themeLight }}',
|
||||
light: '{{ meta.themeDark }}'
|
||||
|
|
@ -60,8 +58,6 @@ function setPreference() {
|
|||
|
||||
function reflectPreference() {
|
||||
document.firstElementChild.setAttribute('data-theme', theme.value);
|
||||
// document.querySelector('#light-theme-toggle')?.setAttribute('aria-label', lightLabel);
|
||||
// document.querySelector('#dark-theme-toggle')?.setAttribute('aria-label', darkLabel);
|
||||
}
|
||||
|
||||
function updateMetaThemeColor() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue