Skip to content

Commit aa435b6

Browse files
authored
Fix a few minor accessibility issues with examples (maplibre#4205)
- Link labels to inputs - Add missing title and viewport to GL Stats page
1 parent 3164f1d commit aa435b6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

test/bench/gl-stats.html

+2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
56
<link rel="icon" href="about:blank">
7+
<title>GL Stats</title>
68
<script>
79
// stub performance.now for deterministic rendering per-frame;
810
// we'll later increment the value by 16 on every frame (16ms per frame for 60fps)

test/examples/filter-within-layer.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@
9595

9696
<fieldset>
9797
<legend>🌊 Tsunami (0 or 1)</legend>
98-
<input id="tsunami" type="checkbox" /> <label>Apply <code>tsunami</code> filter</label>
98+
<input id="tsunami" type="checkbox" />
99+
<label for="tsunami">Apply <code>tsunami</code> filter</label>
99100
<div id="radio-tsunamis">
100101
<input type="radio" id="t0" name="tsunami" value="0" /><label>0</label>
101102
<input type="radio" id="t1" name="tsunami" value="1" /><label>1</label>

test/examples/timeline-animation.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<div class="map-overlay top">
5959
<div class="map-overlay-inner">
6060
<h2>Significant earthquakes in 2015</h2>
61-
<label id="month"></label>
61+
<label id="month" for="slider"></label>
6262
<input id="slider" type="range" min="0" max="11" step="1" value="0" />
6363
</div>
6464
<div class="map-overlay-inner">

0 commit comments

Comments
 (0)