-
Improvement
-
Resolution: Fixed
-
Minor
-
4.0.1
-
MOODLE_400_STABLE
-
MOODLE_403_STABLE
-
MDL-74869-activity-icon-color-map -
The new color coding for activity icon types is neat.
It would be simpler to override if they were set as variables with default values first and then added to the array.
Then you'd just need to set the variable. See the way bootstrap sets its basic colors before adding them to their array for an example.
$activity-icon-colors: () !default; |
$activity-icon-colors: map-merge(
|
(
|
"administration": #5d63f6, |
"assessment": #eb66a2, |
"collaboration": #f7634d, |
"communication": #11a676, |
"content": #399be2, |
"interface": #a378ff |
),
|
$activity-icon-colors
|
);
|
vs
$primary: $blue !default; |
$secondary: $gray-600 !default; |
$success: $green !default; |
$info: $cyan !default; |
$warning: $yellow !default; |
$danger: $red !default; |
$light: $gray-100 !default; |
$dark: $gray-800 !default;$theme-colors: () !default; |
$theme-colors: map-merge(
|
(
|
"primary": $primary, |
"secondary": $secondary, |
"success": $success, |
"info": $info, |
"warning": $warning, |
"danger": $danger, |
"light": $light, |
"dark": $dark |
),
|
$theme-colors
|
);
|
|
- has a non-specific relationship to
-
MDL-77863 Convert hardcoded colors to use variables to make theme customisation easier
-
- Closed
-