remove label references

This commit is contained in:
madrilene 2025-03-31 12:44:18 +02:00
parent c0f7eb5df3
commit 0bb42848d3

View file

@ -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() {