Fix: Add Warn/Error/Abort Theming
This commit is contained in:
parent
bbe7e29ad1
commit
46a7d9b0cb
2 changed files with 17 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
import {provideHttpClient} from '@angular/common/http';
|
import {provideHttpClient} from '@angular/common/http';
|
||||||
import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
|
import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
|
||||||
|
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
||||||
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
|
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
|
||||||
import {provideRouter} from '@angular/router';
|
import {provideRouter} from '@angular/router';
|
||||||
import {routes} from '@app/app.routes';
|
import {routes} from '@app/app.routes';
|
||||||
|
@ -26,6 +27,7 @@ export const appConfig: ApplicationConfig = {
|
||||||
useRefreshToken: true,
|
useRefreshToken: true,
|
||||||
logLevel: LogLevel.Error,
|
logLevel: LogLevel.Error,
|
||||||
},
|
},
|
||||||
})
|
}),
|
||||||
|
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'outline' } }
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,3 +27,17 @@ app-root {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
&.abort, &.error, &.warn {
|
||||||
|
@include mat.button-overrides((
|
||||||
|
text-label-text-color: var(--mat-sys-error),
|
||||||
|
text-ripple-color: var(--mat-sys-error),
|
||||||
|
text-state-layer-color: var(--mat-sys-error),
|
||||||
|
filled-label-text-color: var(--mat-sys-on-error),
|
||||||
|
filled-container-color: var(--mat-sys-error),
|
||||||
|
filled-ripple-color: var(--mat-sys-on-error),
|
||||||
|
filled-state-layer-color: var(--mat-sys-on-error),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue