Fix aria stuff

master
Talon 2025-07-18 23:10:36 +01:00
parent fc5c17752a
commit 23bdef0b84
2 changed files with 5 additions and 8 deletions

View File

@ -751,21 +751,18 @@
<button class="command-tab active" <button class="command-tab active"
role="tab" role="tab"
aria-selected="true" aria-selected="true"
aria-controls="movement-panel"
id="movement-tab" id="movement-tab"
data-category="Movement" data-category="Movement"
tabindex="0">Movement</button> tabindex="0">Movement</button>
<button class="command-tab" <button class="command-tab"
role="tab" role="tab"
aria-selected="false" aria-selected="false"
aria-controls="actions-panel"
id="actions-tab" id="actions-tab"
data-category="Actions" data-category="Actions"
tabindex="-1">Actions</button> tabindex="-1">Actions</button>
<button class="command-tab" <button class="command-tab"
role="tab" role="tab"
aria-selected="false" aria-selected="false"
aria-controls="system-panel"
id="system-tab" id="system-tab"
data-category="System" data-category="System"
tabindex="-1">System</button> tabindex="-1">System</button>

View File

@ -37,12 +37,12 @@ if (localStorage.getItem("save")) {
}); });
} else { } else {
setState(states.BEFORE_PLAY); setState(states.BEFORE_PLAY);
}
addButtonEventListener("begin", () => { addButtonEventListener("begin", () => {
setState(states.PLAY_AREA); setState(states.PLAY_AREA);
startGame(true); startGame(true);
}); });
}
function startGame(newGame) { function startGame(newGame) {
const game = new Game(newGame); const game = new Game(newGame);