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 storageKey = 'theme-preference';
|
||||||
const lightLabel = '{{ meta.themeSwitch.light }}';
|
|
||||||
const darkLabel = '{{ meta.themeSwitch.dark }}';
|
|
||||||
const themeColors = {
|
const themeColors = {
|
||||||
dark: '{{ meta.themeLight }}',
|
dark: '{{ meta.themeLight }}',
|
||||||
light: '{{ meta.themeDark }}'
|
light: '{{ meta.themeDark }}'
|
||||||
|
|
@ -60,8 +58,6 @@ function setPreference() {
|
||||||
|
|
||||||
function reflectPreference() {
|
function reflectPreference() {
|
||||||
document.firstElementChild.setAttribute('data-theme', theme.value);
|
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() {
|
function updateMetaThemeColor() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue