Skip to content

fix(z-result-card): allow text wrapping at high zoom levels#663

Open
ada-workbackai wants to merge 1 commit intomasterfrom
workbackai/fix/wcag-1.4.4-result-card-text-truncation
Open

fix(z-result-card): allow text wrapping at high zoom levels#663
ada-workbackai wants to merge 1 commit intomasterfrom
workbackai/fix/wcag-1.4.4-result-card-text-truncation

Conversation

@ada-workbackai
Copy link
Copy Markdown
Contributor

Summary

Fixes WCAG 1.4.4 (Resize Text) by allowing result card text to wrap instead of being truncated at high zoom levels.

Issue: When users zoom to 200%, book titles and subtitles in z-result-card are truncated with ellipsis or hidden entirely, making it impossible to distinguish between similar products (e.g., different editions of the same textbook).

Solution:

  • Changed card height to min-height so cards can expand when text wraps
  • Changed subtitle from single-line nowrap truncation to 2-line clamp with wrapping
  • Changed mobile breakpoint title from single-line nowrap truncation to 3-line clamp with wrapping

Test Plan

  • Verify cards display normally at 100% zoom
  • Verify text wraps appropriately at 200% zoom without truncation
  • Verify z-result-card spec tests pass (7/7)
  • Verify stylelint passes
  • Verify build succeeds

Evidence

View before/after screenshots and full audit details:
https://app.workback.ai/issues/22/


WCAG Reference: 1.4.4 Resize Text (Level AA)

Users with low vision who rely on 200% browser zoom see truncated
titles and subtitles in search result cards, hiding critical product
information like edition and year.
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.

1 participant