Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,12 @@ <h2>{{ t("danger_zone") }}</h2>
id="delete-btn"
mat-flat-button
type="button"
color="warn"
(click)="openDeleteProjectDialog()"
[class.enabled]="!deleteButtonDisabled"
[disabled]="deleteButtonDisabled"
>
<mat-icon>delete</mat-icon>
{{ t("delete_this_project") }}
</button>
</mat-card-actions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ a {
color: variables.$blueMedium;
}

mat-icon {
color: variables.$greyLight;
overflow: visible;
}

.indent {
margin-block-start: 16px;
margin-inline-start: 16px;
Expand Down Expand Up @@ -129,16 +124,6 @@ mat-icon {
}
}

// Use enabled class to work around changing styles while loading
#delete-btn:not(.enabled) {
background-color: rgba(0, 0, 0, 0.12);
color: rgba(0, 0, 0, 0.38);
}
#delete-btn:not(:disabled) {
background-color: var(--mat-sys-error);
color: var(--mat-sys-on-error);
}

mat-radio-group.tool-setting {
mat-radio-button {
margin-inline-start: 1em;
Expand Down
2 changes: 2 additions & 0 deletions src/SIL.XForge.Scripture/ClientApp/src/themes/_default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,7 @@ $_dark-theme: mat.define-theme(
html.theme-default-dark {
color-scheme: dark;
@include mat.all-component-colors($_dark-theme);
// Keep `color="primary" | "accent" | "warn"` working in dark mode too.
@include mat.color-variants-backwards-compatibility($_dark-theme);
@include mat-styles.theme($_dark-theme);
}
3 changes: 3 additions & 0 deletions src/SIL.XForge.Scripture/ClientApp/src/themes/themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ html {
@include mat.elevation-classes();
@include mat.app-background();
@include mat.all-component-themes($default-theme);
// Enable M2-style `color="primary" | "accent" | "warn"` variants for M3 themes.
// This keeps existing templates working (e.g. `<button mat-button color="accent">`).
@include mat.color-variants-backwards-compatibility($default-theme);
@include mat.all-component-typographies($default-theme);
@include mat.typography-hierarchy($default-theme);
}
Expand Down
Loading