Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDL-83725 activity icon colors update note #1224

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/devupdate.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,33 @@ Both of these values may be combined for plugins supporting both Moodle 4.5 and
```

:::

## Themes

<Since version="5.0" issueNumber="MDL-83725" />

Themes can now customize activity icon colors using simple CSS variables. The new variables introduced are:

- `$activity-icon-administration-bg`
- `$activity-icon-assessment-bg`
- `$activity-icon-collaboration-bg`
- `$activity-icon-communication-bg`
- `$activity-icon-content-bg`
- `$activity-icon-interactivecontent-bg`

All previous `$activity-icon-*-filter` elements can be removed, as they are no longer in use.

:::tip Example of customizing activity icon colors

Themes can customize the activity icon colors by overriding the following variables before loading the Boost scss:

```scss
$activity-icon-administration-bg: #5915b1;
$activity-icon-assessment-bg: #17857f;
$activity-icon-collaboration-bg: #cf7a34;
$activity-icon-communication-bg: #c70827;
$activity-icon-content-bg: #5915b1;
$activity-icon-interactivecontent-bg: #c70827;
```

:::
Loading