diff --git a/assets/scripts/settings.js b/assets/scripts/settings.js index 64fbf03..4c4ff44 100644 --- a/assets/scripts/settings.js +++ b/assets/scripts/settings.js @@ -25,4 +25,10 @@ function toggleSettings() { }; }; -settingsToggle.addEventListener("click", toggleSettings); \ No newline at end of file +settingsToggle.addEventListener("click", toggleSettings); + +document.addEventListener("DOMContentLoaded", () => { + // No tabbing and hide from screen reader until it is open. + settingsList.setAttribute("aria-hidden", true); + settingsItems.forEach(item => {item.tabIndex = -1}); +}); \ No newline at end of file diff --git a/index.html b/index.html index 54613f3..5994565 100644 --- a/index.html +++ b/index.html @@ -64,9 +64,9 @@ Press to open settings. -