Skip to content

Commit eb46d09

Browse files
ivan-risuenoIván Risueño
andauthored
Change simple dialog styling to match the other dialog (#24)
* Change simple dialog styling to match the other dialog * Remove unused css styles for the simple dialog component --------- Co-authored-by: Iván Risueño <ivan.risueno_martin.ext@boehringer-ingelheim.com>
1 parent 68c2018 commit eb46d09

2 files changed

Lines changed: 99 additions & 88 deletions

File tree

Lines changed: 98 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,110 @@
1-
app-request-deletion-dialog {
2-
width: 38.25rem;
3-
display: block !important;
4-
padding: 1.5rem;
5-
box-sizing: border-box;
6-
7-
> * {
8-
padding: 0 !important;
9-
color: var(--appshell-color-dark-green-main) !important;
10-
}
11-
12-
.dialog-header {
13-
margin: 0.5rem 0 0 !important;
14-
display: inline-flex;
15-
flex-direction: row;
16-
justify-content: space-between;
17-
align-items: center;
18-
width: 100%;
19-
20-
h2 {
21-
margin: 0 !important;
22-
padding: 0;
23-
font-family: "AppShellHeadingFont";
24-
font-size: 20px;
25-
font-weight: 500;
26-
line-height: 24px;
27-
28-
&::before,
29-
&::after {
30-
height: auto !important;
31-
}
1+
app-request-deletion-simple-dialog {
2+
width: 38.25rem;
3+
display: block!important;
4+
padding: 1.5rem;
5+
box-sizing: border-box;
6+
7+
&>* {
8+
padding: 0!important;
9+
color: var(--appshell-color-dark-green-main)!important;
3210
}
3311

34-
appshell-icon {
35-
cursor: pointer;
36-
}
37-
}
38-
39-
mat-dialog-content {
40-
display: flex;
41-
flex-direction: column;
42-
gap: 16px;
43-
min-height: 100px;
44-
45-
.help-message-ctn {
46-
display: flex;
47-
flex-direction: row;
48-
align-items: center;
49-
gap: 0.75rem;
50-
margin: 1.5rem 0 !important;
51-
padding: 1rem;
52-
53-
background-color: #d2f2f7;
54-
color: #076d7e;
12+
.dialog-header {
13+
margin: 0.5rem 0 0!important;
14+
display: inline-flex;
15+
flex-direction: row;
16+
justify-content: space-between;
17+
align-items: center;
18+
width: 100%;
19+
20+
h2 {
21+
margin: 0!important;
22+
padding: 0;
23+
font-family: "AppShellHeadingFont";
24+
font-size: 20px;
25+
font-style: normal;
26+
font-weight: 500;
27+
line-height: 24px; /* 120% */
28+
29+
&::before, &::after {
30+
height: auto!important;
31+
}
32+
}
5533

56-
font-size: 14px;
57-
font-weight: 400;
58-
line-height: 20px;
34+
appshell-icon {
35+
cursor: pointer;
36+
}
5937
}
60-
}
61-
62-
mat-dialog-actions {
63-
gap: 1rem;
64-
65-
button:first-of-type {
66-
padding: 0.75rem 1rem;
67-
68-
font-size: 0.875rem;
69-
line-height: 1.25rem;
70-
71-
--mdc-text-button-container-height: unset !important;
72-
--mdc-text-button-container-padding-horizontal: 0;
7338

74-
&:hover {
75-
background-color: transparent;
39+
mat-dialog-content {
40+
display: flex;
41+
flex-direction: column;
42+
gap: 16px;
43+
min-height: 100px;
44+
45+
.help-message-ctn {
46+
background-color: #D2F2F7;
47+
color: #076D7E;
48+
padding: 1rem;
49+
display: flex;
50+
flex-direction: row;
51+
align-items: center;
52+
margin: 1.5rem 0!important;
53+
gap: 0.75rem;
54+
font-size: 14px;
55+
font-style: normal;
56+
font-weight: 400;
57+
line-height: 20px;
7658
}
7759
}
7860

79-
button:last-of-type {
80-
padding: 0.75rem 1.5rem;
81-
height: auto;
82-
83-
font-size: 0.875rem;
84-
line-height: 1.25rem;
85-
86-
--mdc-filled-button-container-height: unset !important;
87-
88-
display: inline-flex;
89-
align-items: center;
90-
91-
border: 2px solid var(--mdc-filled-button-container-color);
92-
border-radius: 0.125rem;
61+
mat-dialog-actions {
62+
gap: 1rem;
63+
64+
button:first-of-type {
65+
color: var(--appshell-color-secondary-main);
66+
font-family: "AppShellTextFont";
67+
padding: 0.75rem;
68+
font-size: 0.875rem;
69+
font-style: normal;
70+
font-weight: 500;
71+
line-height: 1.25rem;
72+
text-decoration-line: underline;
73+
text-decoration-color: var(--appshell-color-accent-green-main);
74+
text-decoration-thickness: 2px;
75+
text-underline-offset: 6px;
76+
77+
--mat-text-button-hover-state-layer-opacity: 0;
78+
--mat-text-button-focus-state-layer-opacity: 0;
79+
--mat-text-button-pressed-state-layer-opacity: 0;
80+
--mat-text-button-ripple-color: transparent;
81+
82+
&:hover {
83+
color: var(--appshell-color-secondary-medium);
84+
background-color: transparent;
85+
text-decoration-color: var(--appshell-color-accent-green-medium);
86+
}
87+
}
9388

94-
&:disabled {
95-
border: none;
89+
button:last-of-type {
90+
--mdc-filled-button-container-height: unset!important;
91+
display: inline-flex;
92+
align-items: center;
93+
padding: 0.75rem 1.5rem;
94+
border-radius: 0.125rem;
95+
font-size: 0.875rem;
96+
font-style: normal;
97+
font-weight: 500;
98+
line-height: 1.25rem;
99+
height: auto;
100+
color: var(--appshell-color-secondary-main)!important;
101+
text-decoration: none;
102+
font-family: AppShellTextFont;
103+
border: 2px solid var(--mdc-filled-button-container-color);
104+
105+
&:disabled {
106+
border: none;
107+
}
96108
}
97109
}
98-
}
99110
}

src/app/components/request-deletion-simple-dialog/request-deletion-simple-dialog.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { RequestDeletionDialogData } from "../../models/request-deletion-dialog-
1010
import { AppShellIconComponent } from "@opendevstack/ngx-appshell";
1111

1212
@Component({
13-
selector: 'app-request-deletion-dialog',
13+
selector: 'app-request-deletion-simple-dialog',
1414
imports: [
1515
CommonModule,
1616
MatButtonModule,

0 commit comments

Comments
 (0)