Skip to content

Commit

Permalink
Replace theme variables with CSS variables (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin authored Sep 13, 2024
1 parent 529eabf commit 5950ab3
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 199 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Changelog
- Enh #363: Deny access for files from message where current user is not participant
- Fix #412: Fix active message after mark unread
- Fix #15: When replying to a message, the conversation is marked as unread
- Enh #417: Replace theme variables with CSS variables

3.2.2 (July 9, 2024)
--------------------
Expand Down
2 changes: 1 addition & 1 deletion models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public function getPinIcon($userId = null): ?Icon
if ($this->isPinned($userId)) {
return Icon::get('map-pin')
->tooltip(Yii::t('MailModule.base', 'Pinned'))
->color(Yii::$app->view->theme->variable('danger', 'red'));
->color('var(--danger)');
}

return null;
Expand Down
Loading

0 comments on commit 5950ab3

Please sign in to comment.