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

Commit

Permalink
feat(indicator): Switched theming to custom properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomheller authored and lukasholzer committed Jul 23, 2020
1 parent 26a5ae2 commit 7692798
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
15 changes: 0 additions & 15 deletions libs/barista-components/indicator/src/indicator-theme.scss

This file was deleted.

13 changes: 8 additions & 5 deletions libs/barista-components/indicator/src/indicator.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@import './indicator-theme';
@import '../../core/src/theming/theming';
.dt-indicator-active.dt-color-error {
--dt-indicator-color: var(--dt-error-default-color);
}
.dt-indicator-active.dt-color-warning {
--dt-indicator-color: var(--dt-warning-default-color);
}

// Apply the indicator theme to all theme definitions
@include dt-apply-theme() {
@include dt-theme-indicator($dt-current-theme);
.dt-indicator-active {
color: var(--dt-indicator-color);
}

0 comments on commit 7692798

Please sign in to comment.