I am having a date-range-picker component:
<mat-form-field>
<mat-label>Enter a date range</mat-label>
<mat-date-range-input [rangePicker]="picker">
<input matStartDate matInput placeholder="Start date">
<input matEndDate matInput placeholder="End date">
</mat-date-range-input>
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
<mat-date-range-picker #picker></mat-date-range-picker>
</mat-form-field>
which behaves weirdly. If it stands alone, then it looks fine. If combined with others then its appearance changes:
Is there anything I can do?
This can be solved by adding this to style.css
:
@import '~@angular/material/prebuilt-themes/indigo-pink.css';