Improve accessibility and polish page styling
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 11m31s
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 11m31s
This commit is contained in:
@@ -192,7 +192,7 @@ export function Game({ id }: { id: string }) {
|
||||
const total =
|
||||
session?.rounds.reduce((n, r) => n + (r.result?.score || 0), 0) || 0;
|
||||
return (
|
||||
<main className="game-page">
|
||||
<main className="game-page" id="main-content" tabIndex={-1}>
|
||||
{session && current && (
|
||||
<Panorama
|
||||
key={session.round}
|
||||
|
||||
@@ -167,7 +167,7 @@ export function MultiplayerRoom({ id }: { id: string }) {
|
||||
{t("Play & maps")}
|
||||
</Link>
|
||||
</header>
|
||||
<main className="section page-content multiplayer-lobby">
|
||||
<main className="section page-content multiplayer-lobby" id="main-content" tabIndex={-1}>
|
||||
{error && (
|
||||
<p className="error-message" role="alert">
|
||||
{t(error)}{" "}
|
||||
|
||||
@@ -7,6 +7,8 @@ export async function PageLoading() {
|
||||
className="section page-content route-loading"
|
||||
aria-busy="true"
|
||||
aria-label={t("Loading page")}
|
||||
id="main-content"
|
||||
tabIndex={-1}
|
||||
>
|
||||
<p role="status" className="muted">
|
||||
{t("Loading page")}…
|
||||
|
||||
Reference in New Issue
Block a user