Loading
fix: #3627429 Podcast card: 18px meta, the design's hover colour, and a visible focus indicator
Issue: https://www.drupal.org/project/vartheme_bs5_rightup/issues/3627429
Measured in a real browser at 1440px on a Varbase 11 build, with the card rendered through the Podcasts view.
| Before | After | |
|---|---|---|
| Episode meta | 16px (.small) |
18px |
| Link hover colour | unchanged black | rgb(79, 70, 225) = #4f46e1 |
| "Listen" focus ring | rgba(217,217,217,.5), ~1.3:1 |
2px #4f46e1, 6.37:1 |
| Stretched-link focus | outline on a 408x0 box, invisible | 2px #4f46e1 on the card, 6.37:1 |
Contrast of the hover colour on white is 6.37:1, so it passes 1.4.3 for text as well.
axe-core 4.10.2 over wcag2a, wcag2aa, wcag21a, wcag21aa, wcag22aa: 0 violations on both the Podcasts listing (25 passes) and an episode page (29 passes). Checked separately because axe cannot: no interactive target under 24x24 (2.5.8), card text contrast 15.5:1.
Two notes on the implementation:
.btn:focus-visiblein Bootstrap setsoutline: 0, so the rule needs&__button.btn:focus-visibleto win rather than a single class.- A
gapchange was tried to match the design's 2px to 4px hover nudge and removed again: the card's base gap is a utility class, the rule computed to no change, and dead CSS is worse than a 2px difference.
Design reference: Podcast Landing Page.
AI-Generated: Yes
Checkpoints:
- File an issue
- Addition/Change/Update/Fix
- Testing to ensure no regression
- Automated unit testing coverage
- Automated functional testing coverage
- UX/UI designer responsibilities
- Readability
- Accessibility
- Performance
- Security
- Developer Documentation
- User Guide Documentation
- Reviewed by human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Release notes snippet
- Release
Edited by Rajab Natshah