High contrast logo

Created on 18 February 2023, almost 2 years ago

Problem/Motivation

I think this is not currently working correctly.

In admin admin/config/user-interface/high-contrast we are supposed to set the logo that would be switched if high contrast is switched on. There's option to either set the path or also this module will try to read file called logo_hg.(svg|png|jpg|gif) from active theme folder.

We do override only the logo for global theme settings in src/HighContrastConfigOverride.php but Drupal actually uses active theme settings. This override seems to be so early that it's not possible to detect what's the active one.

Otherwise we could also set it like this on Claros example:

    $overrides['claro.settings']['logo']['path'] = 'core/themes/claro/logo_hg4.png';
    $overrides['claro.settings']['logo']['url'] = '';
    $overrides['claro.settings']['logo']['use_default'] = FALSE;

One option as also stated in code comment in our module to wait for this https://www.drupal.org/node/2866194

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇪Estonia hkirsman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024