Skip to content

Commit 7adc25d

Browse files
RoyEJohnsonclaudeCopilot
committed
snaps
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Co-Authored-By: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 3a61b7b commit 7adc25d

5 files changed

Lines changed: 117 additions & 603 deletions

File tree

src/app/content/components/Page/__snapshots__/PageToasts.spec.tsx.snap

Lines changed: 34 additions & 178 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ exports[`PageToasts matches snapshot 1`] = `
3939
`;
4040

4141
exports[`PageToasts matches snapshot with toasts when mobile toolbar is open 1`] = `
42-
.c5 {
42+
.c1 {
4343
color: #424242;
4444
font-size: 1.6rem;
4545
line-height: 2.5rem;
@@ -49,79 +49,17 @@ exports[`PageToasts matches snapshot with toasts when mobile toolbar is open 1`]
4949
line-height: 4rem;
5050
}
5151
52-
.c5 a {
52+
.c1 a {
5353
color: #027EB5;
5454
cursor: pointer;
5555
-webkit-text-decoration: underline;
5656
text-decoration: underline;
5757
}
5858
59-
.c5 a:hover {
59+
.c1 a:hover {
6060
color: #0064A0;
6161
}
6262
63-
.c1 {
64-
width: 100%;
65-
position: absolute;
66-
overflow: visible;
67-
}
68-
69-
.c2 {
70-
width: 100%;
71-
margin: 0;
72-
overflow: visible;
73-
-webkit-transition: -webkit-transform 0.6s;
74-
-webkit-transition: transform 0.6s;
75-
transition: transform 0.6s;
76-
z-index: 1;
77-
-webkit-transform: translateY(0%);
78-
-ms-transform: translateY(0%);
79-
transform: translateY(0%);
80-
-webkit-animation: hSsjZP 1s forwards;
81-
animation: hSsjZP 1s forwards;
82-
}
83-
84-
.c3 {
85-
width: 100%;
86-
display: -webkit-box;
87-
display: -webkit-flex;
88-
display: -ms-flexbox;
89-
display: flex;
90-
padding: 0.5rem 1rem;
91-
-webkit-align-items: center;
92-
-webkit-box-align: center;
93-
-ms-flex-align: center;
94-
align-items: center;
95-
background: #F8E8EB;
96-
-webkit-box-pack: justify;
97-
-webkit-justify-content: space-between;
98-
-ms-flex-pack: justify;
99-
justify-content: space-between;
100-
border: 1px solid #E297A0;
101-
}
102-
103-
.c3 .c4 {
104-
background: inherit;
105-
color: #C23834;
106-
font-weight: normal;
107-
line-height: 2.6rem;
108-
}
109-
110-
.c7 {
111-
width: 1.8rem;
112-
height: 1.8rem;
113-
cursor: pointer;
114-
}
115-
116-
.c6 {
117-
color: #C22032;
118-
overflow: visible;
119-
}
120-
121-
.c6:hover {
122-
color: #E297A0;
123-
}
124-
12563
.c0 {
12664
position: -webkit-sticky;
12765
position: sticky;
@@ -131,29 +69,13 @@ exports[`PageToasts matches snapshot with toasts when mobile toolbar is open 1`]
13169
}
13270
13371
@media (max-width:75em) {
134-
.c5 {
72+
.c1 {
13573
padding: 0;
13674
line-height: 2rem;
13775
background-color: initial;
13876
}
13977
}
14078
141-
@media print {
142-
.c2 {
143-
display: none;
144-
}
145-
}
146-
147-
@media (max-width:75em) {
148-
.c3 {
149-
-webkit-align-items: flex-start;
150-
-webkit-box-align: flex-start;
151-
-ms-flex-align: flex-start;
152-
align-items: flex-start;
153-
padding: 1.6rem 1.6rem;
154-
}
155-
}
156-
15779
@media screen and (max-width:90em) {
15880
.c0 {
15981
max-width: calc(100vw - ((100vw - 128rem) / 2) - 8rem);
@@ -182,31 +104,37 @@ exports[`PageToasts matches snapshot with toasts when mobile toolbar is open 1`]
182104
className="c0"
183105
>
184106
<div
185-
className="c1"
107+
className="toasts-container"
186108
>
187109
<div
188-
className="c2"
110+
className="banner-body-wrapper"
111+
data-fading-in={true}
112+
data-fading-out={true}
189113
data-testid="banner-body"
190114
onAnimationEnd={[Function]}
191115
role="alert"
116+
style={
117+
Object {
118+
"zIndex": 1,
119+
}
120+
}
192121
>
193122
<div
194-
className="c3"
123+
className="banner-body banner-body-error"
195124
>
196125
<div
197-
className="c4 c5"
126+
className="c1 toast-header"
198127
>
199128
The highlight could not be saved. Please check your connection and try again.
200129
</div>
201130
<button
202131
aria-label="dismiss"
203-
className="plain-button c6"
132+
className="toast-close-button toast-close-button-error"
204133
onClick={[Function]}
205134
>
206135
<svg
207136
aria-hidden="true"
208-
className="c7"
209-
focusable="false"
137+
className="toast-close-icon"
210138
height="15px"
211139
version="1.1"
212140
viewBox="0 0 15 15"
@@ -240,7 +168,7 @@ exports[`PageToasts matches snapshot with toasts when mobile toolbar is open 1`]
240168
`;
241169

242170
exports[`PageToasts matches snapshots with toasts 1`] = `
243-
.c5 {
171+
.c1 {
244172
color: #424242;
245173
font-size: 1.6rem;
246174
line-height: 2.5rem;
@@ -250,79 +178,17 @@ exports[`PageToasts matches snapshots with toasts 1`] = `
250178
line-height: 4rem;
251179
}
252180
253-
.c5 a {
181+
.c1 a {
254182
color: #027EB5;
255183
cursor: pointer;
256184
-webkit-text-decoration: underline;
257185
text-decoration: underline;
258186
}
259187
260-
.c5 a:hover {
188+
.c1 a:hover {
261189
color: #0064A0;
262190
}
263191
264-
.c1 {
265-
width: 100%;
266-
position: absolute;
267-
overflow: visible;
268-
}
269-
270-
.c2 {
271-
width: 100%;
272-
margin: 0;
273-
overflow: visible;
274-
-webkit-transition: -webkit-transform 0.6s;
275-
-webkit-transition: transform 0.6s;
276-
transition: transform 0.6s;
277-
z-index: 1;
278-
-webkit-transform: translateY(0%);
279-
-ms-transform: translateY(0%);
280-
transform: translateY(0%);
281-
-webkit-animation: hSsjZP 1s forwards;
282-
animation: hSsjZP 1s forwards;
283-
}
284-
285-
.c3 {
286-
width: 100%;
287-
display: -webkit-box;
288-
display: -webkit-flex;
289-
display: -ms-flexbox;
290-
display: flex;
291-
padding: 0.5rem 1rem;
292-
-webkit-align-items: center;
293-
-webkit-box-align: center;
294-
-ms-flex-align: center;
295-
align-items: center;
296-
background: #F8E8EB;
297-
-webkit-box-pack: justify;
298-
-webkit-justify-content: space-between;
299-
-ms-flex-pack: justify;
300-
justify-content: space-between;
301-
border: 1px solid #E297A0;
302-
}
303-
304-
.c3 .c4 {
305-
background: inherit;
306-
color: #C23834;
307-
font-weight: normal;
308-
line-height: 2.6rem;
309-
}
310-
311-
.c7 {
312-
width: 1.8rem;
313-
height: 1.8rem;
314-
cursor: pointer;
315-
}
316-
317-
.c6 {
318-
color: #C22032;
319-
overflow: visible;
320-
}
321-
322-
.c6:hover {
323-
color: #E297A0;
324-
}
325-
326192
.c0 {
327193
position: -webkit-sticky;
328194
position: sticky;
@@ -332,29 +198,13 @@ exports[`PageToasts matches snapshots with toasts 1`] = `
332198
}
333199
334200
@media (max-width:75em) {
335-
.c5 {
201+
.c1 {
336202
padding: 0;
337203
line-height: 2rem;
338204
background-color: initial;
339205
}
340206
}
341207
342-
@media print {
343-
.c2 {
344-
display: none;
345-
}
346-
}
347-
348-
@media (max-width:75em) {
349-
.c3 {
350-
-webkit-align-items: flex-start;
351-
-webkit-box-align: flex-start;
352-
-ms-flex-align: flex-start;
353-
align-items: flex-start;
354-
padding: 1.6rem 1.6rem;
355-
}
356-
}
357-
358208
@media screen and (max-width:90em) {
359209
.c0 {
360210
max-width: calc(100vw - ((100vw - 128rem) / 2) - 8rem);
@@ -383,31 +233,37 @@ exports[`PageToasts matches snapshots with toasts 1`] = `
383233
className="c0"
384234
>
385235
<div
386-
className="c1"
236+
className="toasts-container"
387237
>
388238
<div
389-
className="c2"
239+
className="banner-body-wrapper"
240+
data-fading-in={true}
241+
data-fading-out={true}
390242
data-testid="banner-body"
391243
onAnimationEnd={[Function]}
392244
role="alert"
245+
style={
246+
Object {
247+
"zIndex": 1,
248+
}
249+
}
393250
>
394251
<div
395-
className="c3"
252+
className="banner-body banner-body-error"
396253
>
397254
<div
398-
className="c4 c5"
255+
className="c1 toast-header"
399256
>
400257
The highlight could not be saved. Please check your connection and try again.
401258
</div>
402259
<button
403260
aria-label="dismiss"
404-
className="plain-button c6"
261+
className="toast-close-button toast-close-button-error"
405262
onClick={[Function]}
406263
>
407264
<svg
408265
aria-hidden="true"
409-
className="c7"
410-
focusable="false"
266+
className="toast-close-icon"
411267
height="15px"
412268
version="1.1"
413269
viewBox="0 0 15 15"

0 commit comments

Comments
 (0)