Problem/Motivation
The auxiliary "summary" line within summary elements are intermittently flagged for low contrast in Axe.

The WebAIM contrast checker also reports a failure (ratio: 4.44:1).
This does not occur on the analogous summary within vertical tabs menu items (the UI control that shows a given tab panel), which uses the same color (var(--admin-color-text-soft)).
The problem seems to be that the details version has opacity: 0.8.
Selector:
summary[aria-controls="edit-path-0"] > .details__summary-summary
Snippet:
<span class="details__summary-summary">No alias</span>
WCAG: SC 1.4.3 Contrast (Minimum) (Level AA)
Steps to reproduce
- Install with the standard profile.
- Apply the test Article recipe (
drush recipe core/tests/fixtures/recipes/article_content_type).
- Log in as admin.
- Go to
node/add/article.
- Expand the advanced form sidebar on the right.
- Run a scan with the Axe DevTools browser extension until the error occurs. It seems to be intermittent.
Proposed resolution
Remove the opacity property.
Also check dark mode.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Comments
Comment #2
kentr commentedComment #3
kentr commentedComment #4
kentr commentedOn a positive note, I was alerted to this by the Default Admin test in #3338664: Migrate Nightwatch Axe tests to PHPUnit.
Comment #5
smustgrave commentedShould be a pretty easy fix for someone.
Comment #6
kentr commentedComment #7
kentr commentedComment #8
mherchelYeah, lets just remove the opacity ruleset.
Comment #11
gábor hojtsyCheck this :) Sorry for not leaving to novices, time is VERY TIGHT now.
Comment #12
bernardm28 commentedLooks good.
Comment #13
catchCommitted/pushed to main and cherry-picked to 11.x and 11.4.x, thanks!