fix: #3628418 Drop the extra opacity on the article caption, which failed the color-contrast check
Issue: https://www.drupal.org/project/rightup/issues/3628418
Follow-up to !73 (merged). Since that merge the 15-quality-a functional job fails on one color-contrast violation on the news article page, .fst-italic, in every pipeline (MR pipeline 988838 and 1.0.x pipeline 988839, three attempts each): the image caption is text-muted at opacity-75, which renders #848484 on white, 3.75:1, under the 4.5:1 WCAG AA minimum for 16px text. The design's own caption color (rgba(0,0,0,0.6) at 0.75 opacity) is 3.35:1 and would fail too.
- The caption keeps
text-muted, 16px italic, 24px under the image, and drops the extra opacity (opacity-100): #5b5b5b on white, 6.82:1, which is what passed before !73 (merged). - Same component tree in the
recipe.ymlaction andconfig/canvas.content_template.node.news.full.yml.
Checked: on a local Rightup site, the 15-quality features (15-{02,05}-*.feature, the same set as the failing 15-quality-a job) reproduce the failure on the unfixed template (3 of 57 scenarios fail, all on the article page's color-contrast rule) and pass with this change (57 of 57). The caption still measures 16px/24px italic EB Garamond, 24px under the image. The merge request pipeline runs the same job.
User interface change: the caption is a shade darker than the design's (#5b5b5b against #8c8c8c), which is the accessible choice.
AI-Generated: Yes. Drafted and tested with Claude Code, reviewed by the contributor.
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