Problem/Motivation

A small part of the chevron icon is visible when focusing on an element in forced colour mode. See the attached screenshot.

Steps to reproduce

  1. Set claro as an admin theme
  2. Enable forced colour mode
  3. Check any accordion element for example - go to /admin/config/system/site-information
  4. Check the element on focus mode and you will see the issue

Proposed resolution

Need to unset the background image in forced colour mode

Remaining tasks

User interface changes

Before

before

API changes

Data model changes

Release notes snippet

Issue fork drupal-3415776

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:

Comments

shweta__sharma created an issue. See original summary.

shweta__sharma’s picture

Issue summary: View changes

shweta__sharma’s picture

Status: Active » Needs review
StatusFileSize
new513.42 KB

Pushed the code kindly review it.
Thanks

sandeep_k’s picture

StatusFileSize
new330.3 KB

@shweta__sharma, I've tested the shared MR- MR !6238 mergeable I was able to reproduce the issue but while applying the patch, I was getting an error & patch didn't apply. Error attached.

smustgrave’s picture

Priority: Normal » Minor
Status: Needs review » Reviewed & tested by the community

Seems like a small change and confirmed the issue.

mherchel’s picture

Status: Reviewed & tested by the community » Needs work

Let's not resort to !important unless it's absolutely necessary.

A better fix would be to override the exact same selector (

  .claro-details[open]>.claro-details__summary:focus::before,

) within the forced-colors media query. You could add this on line 292.

Note that the details.pcss.css file needs quite a bit of refactoring at some point. It doesn't make use of modern CSS, or nesting like many other Claro stylesheets do. But in the meantime, let's keep the stylesheet consistent and keep the same patterns.

shweta__sharma’s picture

Status: Needs work » Needs review

Changes are updated as per #7

Thanks

Mithun S made their first commit to this issue’s fork.

mithun s’s picture

Removed the unnecessary trailing comma in the css files and updated the PR with a commit.

kanchan bhogade’s picture

StatusFileSize
new77.58 KB
new78.82 KB

Hi
I've tested the shared MR- MR !6238 mergeable I was able to reproduce the issue and the issue is fixed with the Patch.

Attaching Screenshot

RTBC+1

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @mhercel

Appears suggestions was implemented.

  • nod_ committed 331141c7 on 11.x
    Issue #3415776 by shweta__sharma, Mithun S, Kanchan Bhogade, smustgrave...

  • nod_ committed a86c8268 on 10.3.x
    Issue #3415776 by shweta__sharma, Mithun S, Kanchan Bhogade, smustgrave...
nod_’s picture

Version: 11.x-dev » 10.3.x-dev
Status: Reviewed & tested by the community » Fixed

Committed 331141c and pushed to 11.x. Thanks!

Status: Fixed » Closed (fixed)

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