diff --git a/src/@fuse/components/material-color-picker/material-color-picker.component.html b/src/@fuse/components/material-color-picker/material-color-picker.component.html index 447939ca..16b28439 100644 --- a/src/@fuse/components/material-color-picker/material-color-picker.component.html +++ b/src/@fuse/components/material-color-picker/material-color-picker.component.html @@ -9,10 +9,8 @@ -
+
@@ -39,13 +37,9 @@
-
+
-
+
-
-
-
+
+
+ (click)="selectHue(hue)" fxLayout="row" fxLayoutAlign="start end" mat-ink-ripple> {{hue}} diff --git a/src/@fuse/components/material-color-picker/material-color-picker.component.ts b/src/@fuse/components/material-color-picker/material-color-picker.component.ts index 763ea36c..08671cdb 100644 --- a/src/@fuse/components/material-color-picker/material-color-picker.component.ts +++ b/src/@fuse/components/material-color-picker/material-color-picker.component.ts @@ -125,6 +125,7 @@ export class FuseMaterialColorPickerComponent implements OnChanges this.selectedPalette = ''; this.selectedHue = ''; this.updateSelectedColor(); + this.view = 'palettes'; } updateSelectedColor() diff --git a/src/@fuse/components/material-color-picker/material-color-picker.module.ts b/src/@fuse/components/material-color-picker/material-color-picker.module.ts index ad105a08..94db7875 100644 --- a/src/@fuse/components/material-color-picker/material-color-picker.module.ts +++ b/src/@fuse/components/material-color-picker/material-color-picker.module.ts @@ -1,7 +1,8 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FlexLayoutModule } from '@angular/flex-layout'; -import { MatButtonModule, MatIconModule, MatMenuModule } from '@angular/material'; + +import { MatButtonModule, MatIconModule, MatMenuModule, MatRippleModule } from '@angular/material'; import { FusePipesModule } from '@fuse/pipes/pipes.module'; @@ -19,6 +20,7 @@ import { FuseMaterialColorPickerComponent } from '@fuse/components/material-colo MatButtonModule, MatIconModule, MatMenuModule, + MatRippleModule, FusePipesModule ],