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
No related merge requests found
<div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px"> <div fxLayout="column" fxLayoutAlign="center" fxLayoutGap="20px">
<mat-form-field class="input-block"> <mat-form-field class="input-block">
<textarea matInput #commentBody placeholder="{{ 'comment-page.enter-comment' | translate}}" <textarea matInput #commentBody matTextareaAutosize matAutosizeMinRows=5 matAutosizeMaxRows=10 maxlength="255"
matTextareaAutosize matAutosizeMinRows=5 matAutosizeMaxRows=10 maxlength="255"
[formControl]="bodyForm"></textarea> [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-hint align="end">{{commentBody.value.length}} / 255</mat-hint>
</mat-form-field> </mat-form-field>
<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="20px"> <div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="20px">
......
...@@ -27,7 +27,6 @@ mat-hint { ...@@ -27,7 +27,6 @@ mat-hint {
color: var(--on-surface) !important; color: var(--on-surface) !important;
} }
::placeholder { .placeholder {
color: var(--on-primary); color: var(--on-surface);
opacity: 1;
} }
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
<input matInput #roomId type="text" pattern="[0-9 ]*" inputmode="numeric" min="00000000" max="99999999" <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; 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 + ' ';" 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-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('required')">{{ 'home-page.please-enter' | translate}}</mat-error>
<mat-error *ngIf="roomFormControl.hasError('pattern')">{{ 'home-page.only-numbers' | translate}}</mat-error> <mat-error *ngIf="roomFormControl.hasError('pattern')">{{ 'home-page.only-numbers' | translate}}</mat-error>
......
...@@ -26,7 +26,6 @@ mat-hint { ...@@ -26,7 +26,6 @@ mat-hint {
color: var(--on-surface) !important; color: var(--on-surface) !important;
} }
::placeholder { .placeholder {
color: var(--on-surface); 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