Merge pull request #56 from jducrot/theme-buttons-aria-labels

Remove aria-labels on theme buttons
This commit is contained in:
Lene Saile 2024-08-14 08:03:19 +02:00 committed by GitHub
commit 80be598c2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,8 +60,8 @@ 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);
// document.querySelector('#light-theme-toggle')?.setAttribute('aria-label', lightLabel);
// document.querySelector('#dark-theme-toggle')?.setAttribute('aria-label', darkLabel);
}
function updateMetaThemeColor() {