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

Replace Flex layout module with own class in TextInputComponent

- Reformat styles
parent 310fa32b
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,8 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc ...@@ -32,7 +32,8 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc
(keydown)="onKeyDown.emit({keyboardEvent: $event, inputElement: input})" (keydown)="onKeyDown.emit({keyboardEvent: $event, inputElement: input})"
(focus)="focusChanged.emit({ inputElement: input, focused: true })" (focus)="focusChanged.emit({ inputElement: input, focused: true })"
(blur)="focusChanged.emit({ inputElement: input, focused: false })"> (blur)="focusChanged.emit({ inputElement: input, focused: false })">
<div matSuffix fxLayout="row" fxLayoutAlign="center baseline"> <div matSuffix
class="fx-row-center-baseline">
<mat-icon *ngIf="!elementFormControl.touched && elementModel.hasKeyboardIcon">keyboard_outline</mat-icon> <mat-icon *ngIf="!elementFormControl.touched && elementModel.hasKeyboardIcon">keyboard_outline</mat-icon>
<button *ngIf="elementModel.clearable" <button *ngIf="elementModel.clearable"
type="button" type="button"
...@@ -46,10 +47,21 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc ...@@ -46,10 +47,21 @@ import { TextInputComponent } from 'common/directives/text-input-component.direc
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
`, `,
styles: [ styles: [`
':host ::ng-deep .small-input div.mat-form-field-infix {border-top: none; padding: 0.55em 0 0.25em 0;}', :host ::ng-deep .small-input div.mat-form-field-infix {
':host ::ng-deep .small-input .mat-form-field-outline-gap {display: none; }' border-top: none; padding: 0.55em 0 0.25em 0;
] }
:host ::ng-deep .small-input .mat-form-field-outline-gap {
display: none;
}
.fx-row-center-baseline {
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: center;
align-items: baseline;
}
`]
}) })
export class TextFieldComponent extends TextInputComponent { export class TextFieldComponent extends TextInputComponent {
@Input() elementModel!: TextFieldElement; @Input() elementModel!: TextFieldElement;
......
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