Style alerts

This commit is contained in:
Simon Hanna 2018-08-22 22:26:08 +02:00
parent 19981ad608
commit 0a81fcb1b3
3 changed files with 17 additions and 13 deletions

View File

@ -6,17 +6,13 @@ mat-sidenav {
} }
.page-wrap { .page-wrap {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
} }
.content { .content {
flex: 1; flex: 1;
}
.selected {
font-weight: 600;
} }
.footer { .footer {

View File

@ -1,6 +1,7 @@
<h3>Send an Alert</h3> <h3>Send an Alert</h3>
<mat-form-field> <form #alertForm="ngForm">
<input matInput [(ngModel)]="alert" type="text" placeholder="Alert"></mat-form-field> <mat-form-field>
<div> <input matInput [(ngModel)]="alert" type="text" name="alert" placeholder="Alert" required>
<button mat-raised-button color="warn" (click)="onSubmit()">Send</button> </mat-form-field>
</div> <button mat-raised-button color="primary" id="sendButton" [disabled]="!alertForm.form.valid" (click)="onSubmit()">Send</button>
</form>

View File

@ -0,0 +1,7 @@
mat-form-field {
width: 100%;
}
#sendButton {
width: 100%;
}