Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
feat(consumption): Switched consumption theming to custom properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomheller authored and ffriedl89 committed Jul 27, 2020
1 parent 017921d commit c41f87b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions libs/barista-components/consumption/src/_consumption-theme.scss

This file was deleted.

6 changes: 3 additions & 3 deletions libs/barista-components/consumption/src/consumption.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@import '../../core/src/style/overlay';
@import '../../core/src/style/variables';
@import '../../core/src/style/interactive-common';
@import './consumption-theme';

:host {
display: block;
Expand Down Expand Up @@ -56,6 +55,7 @@
margin-bottom: 6px;
}

@include dt-apply-theme() {
@include dt-theme-consumption($dt-current-theme);
/** Color the consumption count red, if the state is error */
:host.dt-color-error ::ng-deep .dt-consumption-count {
color: var(--dt-error-default-color);
}

0 comments on commit c41f87b

Please sign in to comment.