Skip to content

Commit 9dae324

Browse files
authored
Merge pull request #1224 from ferranrecio/MDL-83725-main
MDL-83725 activity icon colors update note
2 parents a68fbfc + e11fc13 commit 9dae324

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/devupdate.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,33 @@ Both of these values may be combined for plugins supporting both Moodle 4.5 and
5555
```
5656

5757
:::
58+
59+
## Themes
60+
61+
<Since version="5.0" issueNumber="MDL-83725" />
62+
63+
Themes can now customize activity icon colors using simple CSS variables. The new variables introduced are:
64+
65+
- `$activity-icon-administration-bg`
66+
- `$activity-icon-assessment-bg`
67+
- `$activity-icon-collaboration-bg`
68+
- `$activity-icon-communication-bg`
69+
- `$activity-icon-content-bg`
70+
- `$activity-icon-interactivecontent-bg`
71+
72+
All previous `$activity-icon-*-filter` elements can be removed, as they are no longer in use.
73+
74+
:::tip Example of customizing activity icon colors
75+
76+
Themes can customize the activity icon colors by overriding the following variables before loading the Boost scss:
77+
78+
```scss
79+
$activity-icon-administration-bg: #5915b1;
80+
$activity-icon-assessment-bg: #17857f;
81+
$activity-icon-collaboration-bg: #cf7a34;
82+
$activity-icon-communication-bg: #c70827;
83+
$activity-icon-content-bg: #5915b1;
84+
$activity-icon-interactivecontent-bg: #c70827;
85+
```
86+
87+
:::

0 commit comments

Comments
 (0)