Skip to content
Snippets Groups Projects
Commit 4873e657 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix placeholder colors

parent 3a9a1eec
Branches
Tags
1 merge request!233Resolve "Use material dark theme colors"
Pipeline #27344 passed with stages
in 7 minutes and 5 seconds
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px">
<mat-form-field class="input-block">
<textarea matInput #commentBody placeholder="{{ 'comment-page.enter-comment' | translate}}"
matTextareaAutosize matAutosizeMinRows=5 matAutosizeMaxRows=10 maxlength="255"
<textarea matInput #commentBody matTextareaAutosize matAutosizeMinRows=5 matAutosizeMaxRows=10 maxlength="255"
[formControl]="bodyForm"></textarea>
<mat-placeholder class="placeholder">{{ 'comment-page.enter-comment' | translate}}</mat-placeholder>
<mat-hint align="end">{{commentBody.value.length}} / 255</mat-hint>
</mat-form-field>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="20px">
......
......@@ -27,7 +27,6 @@ mat-hint {
color: var(--on-surface) !important;
}
::placeholder {
color: var(--on-primary);
opacity: 1;
.placeholder {
color: var(--on-surface);
}
......@@ -5,7 +5,8 @@
<input matInput #roomId type="text" pattern="[0-9 ]*" inputmode="numeric" min="00000000" max="99999999"
onkeydown="if(this.value.length - (this.value.split(' ').length -1) === 8 && event.keyCode != 8) return false;
if(this.value.length === 4 && event.keyCode != 8) this.value = this.value + ' ';"
placeholder="Session-ID" [formControl]="roomFormControl" [errorStateMatcher]="matcher"/>
[formControl]="roomFormControl" [errorStateMatcher]="matcher"/>
<mat-placeholder class="placeholder">Session-ID</mat-placeholder>
<mat-hint align="end">{{ roomId.value.length - (roomId.value.split(' ').length -1) }} / 8</mat-hint>
<mat-error *ngIf="roomFormControl.hasError('required')">{{ 'home-page.please-enter' | translate}}</mat-error>
<mat-error *ngIf="roomFormControl.hasError('pattern')">{{ 'home-page.only-numbers' | translate}}</mat-error>
......
......@@ -26,7 +26,6 @@ mat-hint {
color: var(--on-surface) !important;
}
::placeholder {
.placeholder {
color: var(--on-surface);
opacity: 1;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment