Skip to content

Commit

Permalink
[MM-29496, MM-29497] Update changeCSS() call to CSS variable for away… (
Browse files Browse the repository at this point in the history
mattermost#7372)

* [MM-29496, MM-29497] Update changeCSS() call to CSS variable for away status indicator (mattermost#6721)

* Fix selector

Co-authored-by: Rohan <[email protected]>
  • Loading branch information
deanwhillier and rohanrk committed Jan 26, 2021
1 parent a1141ee commit 0926347
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 12 additions & 0 deletions sass/components/_status-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,15 @@
fill: rgba(var(--center-channel-color-rgb), 0.56);
}
}

.app__body {
.status {
&.status--away {
color: var(--away-indicator);
}

.away--icon {
fill: var(--away-indicator);
}
}
}
5 changes: 0 additions & 5 deletions utils/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,6 @@ export function applyTheme(theme) {
changeCss('.app__body .status .online--icon', 'fill:' + theme.onlineIndicator);
}

if (theme.awayIndicator) {
changeCss('.app__body .status.status--away', 'color:' + theme.awayIndicator);
changeCss('.app__body .status .away--icon', 'fill:' + theme.awayIndicator);
}

let dndIndicator;
if (theme.dndIndicator) {
dndIndicator = theme.dndIndicator;
Expand Down

0 comments on commit 0926347

Please sign in to comment.