Skip to content

Commit

Permalink
added Empty to ThemePalette
Browse files Browse the repository at this point in the history
  • Loading branch information
lkramarov committed Nov 2, 2018
1 parent c4536a0 commit c2b9b0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/lib/core/common-behaviors/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export enum ThemePalette {
Primary = 'primary',
Second = 'second',
Error = 'error',
Default = 'second'
Default = 'second',
Empty = ''
}

/** Mixin to augment a directive with a `color` property. */
Expand Down
6 changes: 0 additions & 6 deletions src/lib/icon/_icon-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
$foreground: map-get($theme, foreground);
$background: map-get($theme, background);

background: map-get($background, background);;

$primary-color: mc-color($primary, 400);
$second-color: mc-color($second);
$error-color: mc-color($error);
Expand Down Expand Up @@ -46,10 +44,6 @@
color: $error-color;
}
}

&:not(.mc-primary):not(.mc-second):not(.mc-error) {
color: map-get($foreground, default-icon);
}
}

// Облегченные серые иконки less-contrast-icon нужны тогда, когда действие, которое они делают не дефолтное и
Expand Down
4 changes: 2 additions & 2 deletions src/lib/icon/icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ViewEncapsulation
} from '@angular/core';

import { mixinColor, CanColor, CanColorCtor } from '@ptsecurity/mosaic/core';
import { mixinColor, CanColor, CanColorCtor, ThemePalette } from '@ptsecurity/mosaic/core';


@Directive({
Expand All @@ -21,7 +21,7 @@ export class McIconBase {
constructor(public _elementRef: ElementRef) {}
}

export const _McIconMixinBase: CanColorCtor & typeof McIconBase = mixinColor(McIconBase);
export const _McIconMixinBase: CanColorCtor & typeof McIconBase = mixinColor(McIconBase, ThemePalette.Empty);


@Component({
Expand Down

0 comments on commit c2b9b0d

Please sign in to comment.