Problem/Motivation

drush cr or perfomance->clear cache removes the css file: \sites\default\files\css\high_contrast.css
This is with both aggregated and non aggregated CSS performance options.
This can sometimes be resolved by saving the options again on /admin/config/user-interface/high-contrast

Steps to reproduce

In Drupal 10.1.1, install High contrast beta6. Add block and toggle high contrast on to see style changes have taken effect.
Clear cache and high contrast styles have gone.

CommentFileSizeAuthor
#3 change-default-css-folder-3374941-3.patch628 bytesmkrizaj
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

    ice70 created an issue. See original summary.

    ice70’s picture

    mkrizaj’s picture

    StatusFileSize
    new628 bytes

    By default high_contrast.css is saved to public://high_contrast/ which is cleared on "drush cr".

    In the patch below I've changed the default folder for CSS to high_contrast folder and it seems to be working fine now.

    biarr’s picture

    patch from #3 solves the problem.

    sautiwari’s picture

    This patch works for me
    Alter CSS path for high contarst module": "https://www.drupal.org/files/issues/2023-09-22/change-default-css-folder..."