Skip to content

Commit 47ee925

Browse files
committed
Change style for delete certificate dialog
1 parent 2920c9d commit 47ee925

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

modules/ui/src/app/components/simple-dialog/simple-dialog.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{ data.content }}
1919
</p>
2020

21-
<mat-dialog-actions align="end" class="delete-form-actions">
21+
<mat-dialog-actions align="end" class="simple-dialog-actions">
2222
<button
2323
cdkFocusInitial
2424
aria-label="Cancel"

modules/ui/src/app/components/simple-dialog/simple-dialog.component.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616
@use 'colors';
17+
@use 'variables';
1718
@use 'mixins';
1819

1920
::ng-deep :root {
@@ -22,26 +23,31 @@
2223

2324
:host {
2425
@include mixins.dialog;
25-
padding: 24px 16px 8px 24px;
26+
padding: 24px;
2627
gap: 10px;
2728
}
2829

2930
.simple-dialog-title {
30-
color: colors.$grey-900;
3131
font-size: 18px;
3232
line-height: 24px;
3333
padding: 0;
34+
text-align: center;
35+
color: colors.$on-surface;
36+
font-family: variables.$font-primary;
3437
}
3538

3639
.simple-dialog-content {
37-
font-family: Roboto, sans-serif;
40+
font-family: variables.$font-text;
3841
font-size: 14px;
3942
line-height: 20px;
4043
letter-spacing: 0.2px;
41-
color: colors.$grey-800;
44+
color: colors.$on-surface-variant;
4245
}
4346

4447
.simple-dialog-actions {
4548
padding: 0;
4649
min-height: 30px;
50+
button {
51+
font-family: variables.$font-text;
52+
}
4753
}

modules/ui/src/app/pages/certificates/certificates.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class CertificatesComponent implements OnDestroy {
7272
autoFocus: true,
7373
hasBackdrop: true,
7474
disableClose: true,
75-
panelClass: 'simple-dialog',
75+
panelClass: ['simple-dialog', 'delete-certificate'],
7676
});
7777

7878
dialogRef

modules/ui/src/app/pages/certificates/components/certificates-table/certificates-table.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
);
3232
}
3333

34+
::ng-deep .delete-certificate app-simple-dialog {
35+
width: 329px;
36+
}
37+
3438
.table-cell-actions {
3539
text-align: right;
3640
}

0 commit comments

Comments
 (0)