Add search bar in header

This commit is contained in:
2019-06-04 11:34:03 +09:00
parent 22dbc687a5
commit 6b5d96ce24
4 changed files with 54 additions and 68 deletions

View File

@ -35,8 +35,14 @@
</div>
<div fxFlex="50px">
<!-- Search input -->
<div>
<mat-form-field appearance="fill">
<mat-label>Fill form field</mat-label>
<input matInput placeholder="Placeholder">
<mat-icon matSuffix>search</mat-icon>
</mat-form-field>
</div>
</div>

View File

@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { AuthService } from '@app/core/services/auth/auth.service';
import { AuthService } from '@app/core/services/auth/auth.service';
@Component( {
selector: 'app-header',
@ -8,7 +8,7 @@ import { AuthService } from '@app/core/services/auth/auth.service';
} )
export class HeaderComponent implements OnInit {
constructor(private authService: AuthService) {
constructor( private authService: AuthService ) {
}
ngOnInit() {

View File

@ -26,3 +26,27 @@ app-header .mat-fab .mat-button-wrapper {
width: 100%;
min-height: 80%;
}
.mat-form-field.mat-focused .mat-form-field-ripple {
background-color: #078171;
}
.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent {
background-color: #b0bec5;
}
.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn {
background-color: #f44336;
}
.mat-form-field.mat-focused .mat-form-field-label {
color: #078171
}
.mat-form-field.mat-focused .mat-form-field-label.mat-accent {
color: #b0bec5
}
.mat-form-field.mat-focused .mat-form-field-label.mat-warn {
color: #f44336
}