Skip to content

Commit

Permalink
Color picker fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bethany-dawn committed Jul 11, 2018
1 parent b6402cc commit 2f93456
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/components/colorpicker/colorpicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,13 @@ export class ColorPicker implements ControlValueAccessor, AfterViewInit, AfterVi
}

updateColorSelector() {
this.colorSelectorViewChild.nativeElement.style.backgroundColor = '#' + this.HSBtoHEX(this.value);
let hsb: any = {};

hsb.s = 100;
hsb.b = 100;
hsb.h = this.value.h;

this.colorSelectorViewChild.nativeElement.style.backgroundColor = '#' + this.HSBtoHEX(hsb);
}

updateUI() {
Expand Down

0 comments on commit 2f93456

Please sign in to comment.