Skip to content

Fix accessibility issues on About Us speaker links and YouTube embed (#91, #92)#120

Merged
alexwolson merged 1 commit into
CivicTechTO:mainfrom
30Sana:fix/accessibility-issues-91-92
May 17, 2026
Merged

Fix accessibility issues on About Us speaker links and YouTube embed (#91, #92)#120
alexwolson merged 1 commit into
CivicTechTO:mainfrom
30Sana:fix/accessibility-issues-91-92

Conversation

@30Sana

@30Sana 30Sana commented May 14, 2026

Copy link
Copy Markdown
Contributor

Fixes #91 and #92 — Accessibility improvements

#92 — Remove invalid alt attribute on <a> elements in About Us

  • Removed alt="{{speark.title}}" from the anchor element in _pages/about-us.md
  • alt is not a valid attribute on <a> elements
  • The link's accessible name is already provided by the <h4> heading content

#91 — Add descriptive title to YouTube iframes

  • Updated _includes/embed_youtube.html to accept a title parameter with a fallback
  • Updated _layouts/meetup.html to pass the meetup topic as the iframe title
  • Satisfies WCAG 2.4.1 and 4.1.2

Both issues are part of the WCAG 2.2 Level AA compliance milestone (#85).

- 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 CivicTechTO#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 CivicTechTO#91.
@alexwolson
alexwolson merged commit 56edf94 into CivicTechTO:main May 17, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YouTube embed title is non-descriptive

2 participants