Skip to content

Commit

Permalink
Merge pull request #16194 from qburst/fix--open-colorpicker-on-label-…
Browse files Browse the repository at this point in the history
…click

fix: open colorpicker on label click in docs
  • Loading branch information
cetincakiroglu authored Aug 8, 2024
2 parents 512f03d + a7c7a81 commit 5e148b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/showcase/doc/colorpicker/formatdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import { Code } from '@domain/code';
<div class="card flex flex-wrap gap-3">
<div class="flex-1 flex flex-column align-items-center gap-3">
<label for="cp-hex" class="font-bold block mb-2"> HEX </label>
<p-colorPicker [(ngModel)]="color" />
<p-colorPicker [(ngModel)]="color" inputId="cp-hex" />
<span>{{ color }}</span>
</div>
<div class="flex-1 flex flex-column align-items-center gap-3">
<label for="cp-rgb" class="font-bold block mb-2"> RGB </label>
<p-colorPicker [(ngModel)]="colorRGB" format="rgb" />
<p-colorPicker [(ngModel)]="colorRGB" format="rgb" inputId="cp-rgb" />
<span>{{ 'r:' + colorRGB.r + ' g:' + colorRGB.g + ' b:' + colorRGB.b }}</span>
</div>
<div class="flex-1 flex flex-column align-items-center gap-3">
<label for="cp-hsb" class="font-bold block mb-2"> HSB </label>
<p-colorPicker [(ngModel)]="colorHSB" format="hsb" />
<p-colorPicker [(ngModel)]="colorHSB" format="hsb" inputId="cp-hsb" />
<span>{{ 'h:' + colorHSB.h + ' s:' + colorHSB.s + ' b:' + colorHSB.b }}</span>
</div>
</div>
Expand Down

0 comments on commit 5e148b8

Please sign in to comment.