Fix: Warn/Error/Abort styling for FAB; FIX: remove FAB shadow in tables
This commit is contained in:
parent
34d635a6fd
commit
5cd186b812
1 changed files with 40 additions and 9 deletions
|
@ -29,15 +29,46 @@ app-root {
|
|||
}
|
||||
|
||||
button {
|
||||
&.abort, &.error, &.warn {
|
||||
&.abort,
|
||||
&.error,
|
||||
&.warn {
|
||||
@include mat.button-overrides((
|
||||
// default
|
||||
text-label-text-color: var(--mat-sys-error),
|
||||
text-ripple-color: var(--mat-sys-error),
|
||||
text-state-layer-color: var(--mat-sys-error),
|
||||
// filled
|
||||
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),
|
||||
));
|
||||
@include mat.fab-overrides((
|
||||
// default
|
||||
container-color: var(--mat-sys-error-container),
|
||||
foreground-color: var(--mat-sys-on-error-container),
|
||||
state-layer-color: var(--mat-sys-on-error-container),
|
||||
ripple-color: var(color-mix(in srgb, var(--mat-sys-on-error) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent)),
|
||||
// mini
|
||||
small-container-color: var(--mat-sys-error-container),
|
||||
small-foreground-color: var(--mat-sys-on-error-container),
|
||||
small-state-layer-color: var(--mat-sys-on-error-container),
|
||||
small-ripple-color: var(color-mix(in srgb, var(--mat-sys-on-error) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
table button.mdc-fab {
|
||||
@include mat.fab-overrides((
|
||||
// default
|
||||
container-elevation-shadow: transparent,
|
||||
hover-container-elevation-shadow: transparent,
|
||||
pressed-container-elevation-shadow: transparent,
|
||||
focus-container-elevation-shadow: transparent,
|
||||
// mini
|
||||
small-container-elevation-shadow: transparent,
|
||||
small-hover-container-elevation-shadow: transparent,
|
||||
small-pressed-container-elevation-shadow: transparent,
|
||||
small-focus-container-elevation-shadow: transparent,
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue