Problem/Motivation

Three things on the podcast-card component differ from the design, and two of them are WCAG AA failures.

  • The episode meta carries Bootstrap's .small (16px). Figma Desktop/Body/Regular/Medium is 18px.
  • The design's Link/Hover variant recolours the label and the arrow to brand/tertiary #4f46e1. The card's hover only sweeps an underline, with no colour change.
  • The "Listen" link inherits a rgba(217, 217, 217, .5) focus ring, about 1.3:1 on white. WCAG 2.2 1.4.11 Non-text Contrast wants 3:1 for a focus indicator.
  • The card's stretched link is a 408x0 box, so its focus outline draws around nothing and a keyboard user sees no indicator at all. WCAG 2.4.7 Focus Visible.

Design reference: Podcast Landing Page.

Steps to reproduce

  1. Install The Rightup site template on Varbase 11 (Drupal ~11.4) and open /podcasts in a 1440px viewport.
  2. Inspect an episode card's meta line: the computed font-size is 16px, not the design's 18px.
  3. Hover a card: the "Listen" label and its arrow keep their rest colour.
  4. Tab to a card: the stretched link's focus outline draws on a zero-height box, so nothing is visible; tab again to the "Listen" link and the focus ring is the inherited grey.

Proposed resolution

  • Set the episode meta to 1.125rem.
  • Recolour the link to --bs-tertiary on hover and focus, driven from the card so the whole stretched-link area responds.
  • Replace both focus indicators with a 2px --bs-tertiary outline at 2px offset, drawn on the card for the stretched link.

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ❌ UX/UI designer responsibilities
  • ✅ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • The episode meta is 18px.
  • Hovering or focusing a podcast card turns "Listen" and its arrow brand tertiary.
  • Keyboard focus draws a visible outline on the card and on the link.

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Podcast card: the episode meta is 18px, "Listen" and its arrow turn brand tertiary on hover and focus, and keyboard focus now draws a visible outline on the card and on the link.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue.