Skip to content

Commit cbca6d9

Browse files
committed
fix(app): accessibility improvements
Ref: agrc/planning-queue#813
1 parent 7306163 commit cbca6d9

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
</head>
1616

1717
<body>
18+
<noscript>
19+
<div role="alert">
20+
<h1>JavaScript is required</h1>
21+
<p>
22+
We're sorry, but this application requires JavaScript to be enabled to function. Please enable JavaScript in
23+
your browser settings and reload.
24+
</p>
25+
</div>
26+
</noscript>
1827
<div id="root"></div>
1928
<script type="module" src="/src/main.jsx"></script>
2029
</body>

src/components/app/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function App() {
88
const [state, dispatch] = useImmerReducer(reduce, defaults);
99

1010
return (
11-
<main className="app grid h-full w-screen">
11+
<main id="main-content" tabIndex="-1" className="app grid h-full w-screen">
1212
<Map state={state.map} color={state.addPoint.color} drawerOpen={state.drawerOpen} dispatch={dispatch} />
1313
<Menu drawerOpen={state.drawerOpen} dispatch={dispatch}>
1414
menu

src/components/pageElements/Welcome.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default function Welcome({ dispatch }) {
1414

1515
return (
1616
<main className="mt-3 inline-grid gap-4">
17+
<h1 className="sr-only">Utah PLSS Corner Points</h1>
1718
<h2 className="text-2xl font-semibold">What is the PLSS</h2>
1819
<p className="ml-3">
1920
Section corners in the Public Land Survey System (PLSS) form the foundation for all descriptions of private

0 commit comments

Comments
 (0)