Edits to variables not showing in storybook/site

Created on 10 June 2024, 17 days ago
Updated 23 June 2024, 5 days ago

Problem/Motivation

Editing global variables in civictheme/components/variables.base.scss and variables.components.scss does not create changes in component storybooks or on website.

Steps to reproduce

Spin up drupal server with drupal 10.2.6, install and enable civictheme 1.7.1 according to the official steps.

Open the server files, and navigate to .../drupal/themes/contrib/civictheme/components/variables.base.scss

Edit or override a variable, for example set $ct-colors: ('light': ('custom1': red));

Save the file, rebuild the Cache with drush cr, and restart the server

Open your drupal website, navigate to appearance -> settings -> civictheme -> storybooks for civictheme

Note that changes made to the above file have not propagated to the related storybooks page, or to the relevant places on the website.

πŸ› Bug report
Status

Closed: works as designed

Version

1.7

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

Sign in to follow issues

Comments & Activities

  • Issue created by @a-saini
  • Status changed to Closed: works as designed 5 days ago
  • πŸ‡¦πŸ‡ΊAustralia alex.skrypnyk Melbourne

    @a-saini
    You are modifying the files in the base CivicTheme, but these should not be modified because this is a base theme. Please create a sub-theme to provide overrides.

Production build 0.69.0 2024