Skip to content

Commit ce8bb6f

Browse files
committed
Revert "Adding right padding to the title text of a modal to prevent the title from overlapping with the close cross"
This reverts commit f232489.
1 parent f232489 commit ce8bb6f

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

src/components/dls/ContentModal/ContentModal.module.scss

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@use 'src/styles/breakpoints';
2-
@use 'src/styles/mixins/z-index' as z-index-mixins;
1+
@use "src/styles/breakpoints";
2+
@use "src/styles/mixins/z-index" as z-index-mixins;
33

44
$translateYDistance: 200px;
55

@@ -41,14 +41,14 @@ $translateYDistance: 200px;
4141

4242
.modalContainer {
4343
@include breakpoints.desktop {
44-
max-inline-size: initial;
45-
inline-size: 60vw;
44+
max-width: initial;
45+
width: 60vw;
4646
}
4747
}
4848

4949
.contentContainer {
5050
overflow-y: scroll;
51-
block-size: 80vh;
51+
height: 80vh;
5252
}
5353

5454
.overlay {
@@ -84,9 +84,9 @@ $translateYDistance: 200px;
8484
border-radius: var(--border-radius-rounded);
8585
position: relative;
8686

87-
inline-size: 100vw;
87+
width: 100vw;
8888

89-
block-size: 100%;
89+
height: 100%;
9090
overflow-y: scroll;
9191
@include breakpoints.tablet {
9292
overflow-y: visible;
@@ -101,44 +101,48 @@ $translateYDistance: 200px;
101101

102102
.autoHeight {
103103
@include breakpoints.tablet {
104-
block-size: auto;
104+
height: auto;
105105
}
106106
}
107107

108108
// size
109109
.medium {
110110
@include breakpoints.tablet {
111111
padding: calc(1.5 * var(--spacing-mega));
112-
inline-size: 85vw;
112+
width: 85vw;
113113
}
114114
@include breakpoints.desktop {
115-
inline-size: 60vw;
115+
width: 60vw;
116116
}
117117
}
118118

119119
.small {
120120
@include breakpoints.tablet {
121121
padding: calc(1.5 * var(--spacing-mega));
122-
inline-size: 60vw;
122+
width: 60vw;
123123
}
124124
@include breakpoints.desktop {
125-
inline-size: 40vw;
125+
width: 40vw;
126126
}
127127
}
128128

129-
.overlay[data-state='open'] {
129+
.overlay[data-state="open"] {
130130
animation: fadeIn var(--transition-regular);
131131
}
132-
.overlay[data-state='closed'] {
132+
.overlay[data-state="closed"] {
133133
animation: fadeOut var(--transition-regular);
134134
}
135135

136-
.contentWrapper[data-state='open'] {
137-
animation: contentIn var(--transition-regular) ease, fadeIn var(--transition-regular) ease;
136+
.contentWrapper[data-state="open"] {
137+
animation:
138+
contentIn var(--transition-regular) ease,
139+
fadeIn var(--transition-regular) ease;
138140
}
139141

140-
.contentWrapper[data-state='closed'] {
141-
animation: contentOut var(--transition-regular) ease, fadeOut var(--transition-regular) ease;
142+
.contentWrapper[data-state="closed"] {
143+
animation:
144+
contentOut var(--transition-regular) ease,
145+
fadeOut var(--transition-regular) ease;
142146
}
143147

144148
.closeIcon {
@@ -169,7 +173,6 @@ $translateYDistance: 200px;
169173
padding: 0;
170174
}
171175
border-block-end: 1px solid var(--color-borders-hairline);
172-
padding-inline-end: 9vw;
173176
}
174177

175178
.content {

0 commit comments

Comments
 (0)