Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: color picker style (DEV-3476) #1551

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -8,7 +8,7 @@
<textarea matInput rows="7" formControlName="comment"></textarea>
</mat-form-field>
<mat-form-field class="large-field without-border color-field">
<mat-label>Color *</mat-label>
<mat-label class="color-label">Color *</mat-label>
<app-color-picker #colorInput [formControlName]="'color'" class="value"> </app-color-picker>
</mat-form-field>
<mat-form-field class="hidden">
Expand Down
Expand Up @@ -10,12 +10,25 @@
}
}

::ng-deep .color-field > .mat-mdc-text-field-wrapper {
padding-top: 22px;
}

.color-field {
// unfortunate necessary use of ng-deep to override the default
::ng-deep .mat-mdc-text-field-wrapper {
overflow: visible;
z-index: 999;

.color-label {
line-height: 48px;
}

.mat-mdc-form-field-infix {
padding-top: 13px;
min-height: 50px;
}

// the color picker library calculates the wrong position if placed in a dialog window
// this is a workaround to fix the position
.color-picker.open {
Expand Down
@@ -1,4 +1,4 @@
.child-input-component {
height: 48px;
height: 58px;
max-width: 256px;
}