Commit 56edf94
authored
Fix accessibility issues on About Us speaker links and YouTube embed (#120)
- Remove invalid `alt` attribute from `<a>` elements in the Past
Speakers list on the About Us page. The `alt` attribute is not
valid on `<a>` elements (it only applies to `<img>`, `<area>`,
and `<input type="image">`). The link's accessible name is
already provided by the heading text it contains. Fixes #92.
- Make `embed_youtube.html` accept a `title` parameter and use it
as the iframe `title`, falling back to "Embedded YouTube video"
if none is provided. The meetup layout now passes the meetup
topic, so screen-reader users hear a descriptive frame title
instead of the generic "YouTube video". Aligns with WCAG 2.4.1
(Bypass Blocks) and 4.1.2 (Name, Role, Value). Fixes #91.1 parent 71b58aa commit 56edf94
3 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | | - | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | | - | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments