Claro chevron looks like a diamond when in forced colors mode within Edge.

Within Firefox, it may not meet the contrast criteria.

Within Edge, this is happening because transparent borders are made opaque in forced colors mode. We need to completely remove the unneeded borders (not just make them transparent).

https://git.drupalcode.org/project/drupal/-/blob/10.0.x/core/themes/clar...

We should probably convert this to either use CSS mask image, or use CSS borders to create the chevron.

MS Edge:

Firefox:

Issue fork drupal-3269341

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mherchel created an issue. See original summary.

mherchel’s picture

Status: Active » Needs review
FileSize
1.64 KB
44.33 KB
46.75 KB

Drupal 10 patch attached.

mherchel’s picture

Status: Needs review » Needs work

💩 Doesn't work properly in FF

mherchel’s picture

Status: Needs work » Needs review
FileSize
3.06 KB

New patch works properly in all browsers.

KurtTrowbridge’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
12.54 KB
13.42 KB
12.13 KB

Tested this in Windows High Contrast Mode with the patch applied, and the chevrons are looking good in Chrome, Edge, and Firefox now. I've attached screenshots from just one of the default color themes, but confirmed that all four appeared as expected, both when the element is opened or closed.

mherchel’s picture

Discussed this with @lauriii earlier today. Attached is a patch for 9.4.x that also supports IE11.

Using the same method, so leaving RTBC.

ckrina’s picture

Version: 10.0.x-dev » 9.4.x-dev

Changing to 9.4.

  • ckrina committed ab4a24f on 10.0.x
    Issue #3269341 by mherchel, KurtTrowbridge: Claro <details> element not...

  • ckrina committed a64c04c on 9.4.x
    Issue #3269341 by mherchel, KurtTrowbridge: Claro <details> element not...
ckrina’s picture

Version: 9.4.x-dev » 9.3.x-dev

Committed ab4a24f and pushed to 10.0.x. and 9.4.x. Thanks!

I'll leave this open to port it to 9.3.x after the patch release.

  • lauriii committed 4630d6f on 9.3.x authored by ckrina
    Issue #3269341 by mherchel, KurtTrowbridge: Claro <details> element not...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Cherry-picked to 9.3.x ✌️

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.