Skip to content

Commit

Permalink
addressed PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eljefe223 committed Sep 23, 2020
1 parent 5681f9e commit 6c0b494
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/web-components/src/card/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { attr, Observable } from '@microsoft/fast-element';
import { attr, Notifier, Observable } from '@microsoft/fast-element';
import { ColorRGBA64, parseColorHexRGB } from '@microsoft/fast-colors';
import { designSystemProperty, designSystemProvider, CardTemplate as template } from '@microsoft/fast-foundation';
import { createColorPalette, DesignSystem, neutralFillCard } from '@microsoft/fast-components-styles-msft';
Expand Down Expand Up @@ -81,7 +81,9 @@ export class FluentCard extends FluentDesignSystemProvider

connectedCallback(): void {
super.connectedCallback();
Observable.getNotifier(this.provider?.designSystem).subscribe(this, 'backgroundColor');
const desinSystemNotifier: Notifier = Observable.getNotifier(this.provider?.designSystem);
desinSystemNotifier.subscribe(this, 'backgroundColor');
desinSystemNotifier.subscribe(this, 'neutralPalette');
this.handleChange(this.provider?.designSystem as DesignSystem, 'backgroundColor');
}
}
Expand Down

0 comments on commit 6c0b494

Please sign in to comment.