Skip to content
Snippets Groups Projects
Commit 2e9dc750 authored by jojohoch's avatar jojohoch
Browse files

[spell-correct] Allow to enter a word without crossing out first

Fixed by using styles as in text field to define the background color

#625
parent 4a470783
No related branches found
No related tags found
No related merge requests found
Pipeline #55201 passed
......@@ -6,6 +6,8 @@ Player
### Fehlerbehebungen
- Behebt Darstellungsfehler aud dem iPad beim Fortschrittsbalken und der Zeitanzeige von Audios/Videos
- Ermöglicht bei "Wort korrigieren" die Eingabe von Zeichen ohne zunächst das falsch geschriebene Wort durchstreichen zu müssen
## 2.4.0
### Neue Funktionen
......
......@@ -11,10 +11,10 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc
<div [style.width.%]="100"
[style.height.%]="100">
<div class="fx-column-start-stretch"
aspectInputBackgroundColor [backgroundColor]="elementModel.styling.backgroundColor"
[style.width.%]="100"
[style.height.%]="100">
<mat-form-field class="small-input">
<mat-form-field class="small-input"
[style.--backgroundColor]="elementModel.styling.backgroundColor">
<input matInput #input
autocomplete="off"
autocapitalize="none"
......@@ -64,6 +64,15 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc
</div>
`,
styles: [`
:host ::ng-deep .mat-mdc-form-field-infix {
z-index: 1;
}
:host ::ng-deep .mat-mdc-text-field-wrapper .mdc-notched-outline * {
background-color: var(--backgroundColor) !important;
}
:host ::ng-deep .mat-mdc-text-field-wrapper.mdc-text-field--filled {
background-color: var(--backgroundColor) !important;
}
.spell-correct-button {
text-decoration-thickness: 3px;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment