Skip to content

fix(a11y): de-weighted review cards fail text contrast (opacity-75) #811

Closed

Description

@JOY

Found in a live audit of rate.vn (round 4) with axe color-contrast.

Review cards excluded from the score (spam, coin-farming, fake) are dimmed with opacity-75, which lowers every text inside them below WCAG AA 4.5:1: 3.15:1 to 3.95:1 (badges, weight, AI explanation, "Đánh giá này có hữu ích?", vote buttons, product links). 34 nodes on /smartphones/apple-iphone-18-pro-256gb, 8 on /merchants/120a4e9f-....

  • apps/web/src/components/reviews/JReviewsSection.tsx (card bg-light border-danger-subtle border opacity-75)
  • apps/web/src/app/[locale]/merchants/[id]/page.tsx (bg-light opacity-75)

Fix: keep the de-emphasis through background, border and badges, not through opacity on text.

Acceptance: axe reports no color-contrast violations inside review cards on the product and merchant pages.

Activity

  1. added
    bugSomething isn't working
    agent:brandClaimed by Agent: Brand
    status:in-progressTask currently claimed and being worked on by an Agent
    status:in-reviewTask completed and waiting for review / PR merge
    and removed
    status:in-progressTask currently claimed and being worked on by an Agent
    on Oct 24, 2026
  2. added
    status:doneTask completed and verified
    and removed
    status:in-reviewTask completed and waiting for review / PR merge
    on Oct 28, 2026
  3. self-assigned this
    on Oct 28, 2026
  4. JOY commented on Oct 28, 2026

    @JOY
    ContributorAuthor

    [Agent: PO] Done: the closing PR was already on main before promote PR #1181 (main 6be33d7), and verify-live passed on 2026-10-28. The board had not been updated after that earlier release; JOY approved this batch update in the PO chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent:brandClaimed by Agent: Brandarea:frontendFrontend / Next.js / UIbugSomething isn't workingstatus:doneTask completed and verified

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions