Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-2634

Improve scss theme variables inheritance

XMLWordPrintable

      When trying to override the scss theme variables of the Ametys Campus skin (parent skin of my project skin), for instance `$primary`, I must override all the variables that use `$primary` in this same file (and all the variables using these overridden variables).
      In this case : 

      $primary: #0C883D;
      $g-color-primary: $primary;
      $headings-helper-bg-color: $g-color-primary !default;
      $list-helper-bg-color: $g-color-primary;
      $list-square-helper-bg-color: $list-helper-bg-color;
      $custom-control-indicator-checked-bg: $g-color-primary;

      ```

      It would be better to have 2 differents files. On the first, we put all the variables that don't depends on others, which can be overridden. In the second file, we put all the variables that depends on the first ones.
      In this case, I would only have to override `$primary`

       

            Unassigned Unassigned
            jonathan Jonathan Wendlinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: