Skip to content

Commit 403dce2

Browse files
committed
update snapshots
1 parent 20be1ea commit 403dce2

File tree

5 files changed

+157
-27
lines changed

5 files changed

+157
-27
lines changed

test/unit/header/__snapshots__/index.test.ts.snap

Lines changed: 139 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`createBanner check customized logo... 1`] = `
44
<div
5-
style="box-shadow: var(--sui-header-shadow, 0px 1px 4px #000000); display: flex; justify-content: space-between; padding: 0 var(--sui-space-lg, 1.5em);"
5+
style="background: var(--sui-bg-header, white); box-shadow: var(--sui-header-shadow, 0px 1px 4px #000000); display: flex; justify-content: space-between; padding: 0 var(--sui-space-lg, 1.5em);"
66
>
77
<a
88
href="https://test.com"
@@ -90,7 +90,7 @@ exports[`createBanner check customized logo... 1`] = `
9090
style="background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: none;"
9191
>
9292
<ul
93-
style="undefined"
93+
style="list-style: none; margin: 0; padding: 0;"
9494
>
9595
<li
9696
style="border-bottom: solid 1px var(--sui-text, #000000);"
@@ -112,8 +112,51 @@ exports[`createBanner check customized logo... 1`] = `
112112
style="background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: none;"
113113
>
114114
<ul
115-
style="undefined"
115+
style="list-style: none; margin: 0; padding: 0;"
116116
>
117+
<li
118+
style="undefined font-weight: bold; padding: 0.5em 1em; color: #666; font-size: 0.9em;"
119+
>
120+
🎨 Themes
121+
</li>
122+
<li
123+
style="border-bottom: solid 1px var(--sui-text, #000000);"
124+
>
125+
<button
126+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
127+
/>
128+
</li>
129+
<li
130+
style="border-bottom: solid 1px var(--sui-text, #000000);"
131+
>
132+
<button
133+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
134+
/>
135+
</li>
136+
<li
137+
style="border-bottom: solid 1px var(--sui-text, #000000);"
138+
>
139+
<button
140+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
141+
/>
142+
</li>
143+
<li
144+
style="border-bottom: solid 1px var(--sui-text, #000000);"
145+
>
146+
<button
147+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
148+
/>
149+
</li>
150+
<li
151+
style="border-bottom: solid 1px var(--sui-text, #000000);"
152+
>
153+
<button
154+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
155+
/>
156+
</li>
157+
<li
158+
style="border-top: 1px solid #ddd; margin: 0.5em 0;"
159+
/>
117160
<li
118161
style="border-bottom: solid 1px var(--sui-text, #000000);"
119162
>
@@ -140,7 +183,7 @@ exports[`createBanner check customized logo... 1`] = `
140183

141184
exports[`createBanner creates a link 1`] = `
142185
<div
143-
style="box-shadow: var(--sui-header-shadow, 0px 1px 4px #000000); display: flex; justify-content: space-between; padding: 0 var(--sui-space-lg, 1.5em);"
186+
style="background: var(--sui-bg-header, white); box-shadow: var(--sui-header-shadow, 0px 1px 4px #000000); display: flex; justify-content: space-between; padding: 0 var(--sui-space-lg, 1.5em);"
144187
>
145188
<a
146189
href="https://test.com"
@@ -228,7 +271,7 @@ exports[`createBanner creates a link 1`] = `
228271
style="background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: none;"
229272
>
230273
<ul
231-
style="undefined"
274+
style="list-style: none; margin: 0; padding: 0;"
232275
>
233276
<li
234277
style="border-bottom: solid 1px var(--sui-text, #000000);"
@@ -250,8 +293,51 @@ exports[`createBanner creates a link 1`] = `
250293
style="background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: none;"
251294
>
252295
<ul
253-
style="undefined"
296+
style="list-style: none; margin: 0; padding: 0;"
254297
>
298+
<li
299+
style="undefined font-weight: bold; padding: 0.5em 1em; color: #666; font-size: 0.9em;"
300+
>
301+
🎨 Themes
302+
</li>
303+
<li
304+
style="border-bottom: solid 1px var(--sui-text, #000000);"
305+
>
306+
<button
307+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
308+
/>
309+
</li>
310+
<li
311+
style="border-bottom: solid 1px var(--sui-text, #000000);"
312+
>
313+
<button
314+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
315+
/>
316+
</li>
317+
<li
318+
style="border-bottom: solid 1px var(--sui-text, #000000);"
319+
>
320+
<button
321+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
322+
/>
323+
</li>
324+
<li
325+
style="border-bottom: solid 1px var(--sui-text, #000000);"
326+
>
327+
<button
328+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
329+
/>
330+
</li>
331+
<li
332+
style="border-bottom: solid 1px var(--sui-text, #000000);"
333+
>
334+
<button
335+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
336+
/>
337+
</li>
338+
<li
339+
style="border-top: 1px solid #ddd; margin: 0.5em 0;"
340+
/>
255341
<li
256342
style="border-bottom: solid 1px var(--sui-text, #000000);"
257343
>
@@ -286,8 +372,52 @@ exports[`createHelpMenu creates a menu.... 1`] = `
286372
style="background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: none;"
287373
>
288374
<ul
289-
style="undefined"
290-
/>
375+
style="list-style: none; margin: 0; padding: 0;"
376+
>
377+
<li
378+
style="undefined font-weight: bold; padding: 0.5em 1em; color: #666; font-size: 0.9em;"
379+
>
380+
🎨 Themes
381+
</li>
382+
<li
383+
style="border-bottom: solid 1px var(--sui-text, #000000);"
384+
>
385+
<button
386+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
387+
/>
388+
</li>
389+
<li
390+
style="border-bottom: solid 1px var(--sui-text, #000000);"
391+
>
392+
<button
393+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
394+
/>
395+
</li>
396+
<li
397+
style="border-bottom: solid 1px var(--sui-text, #000000);"
398+
>
399+
<button
400+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
401+
/>
402+
</li>
403+
<li
404+
style="border-bottom: solid 1px var(--sui-text, #000000);"
405+
>
406+
<button
407+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
408+
/>
409+
</li>
410+
<li
411+
style="border-bottom: solid 1px var(--sui-text, #000000);"
412+
>
413+
<button
414+
style="background: none; border: 0; color: var(--sui-text, black); cursor: pointer; display: block; font-family: Arial; font-size: 1em; text-align: left; padding: var(--sui-space-md, 1em); width: 100%;"
415+
/>
416+
</li>
417+
<li
418+
style="border-top: 1px solid #ddd; margin: 0.5em 0;"
419+
/>
420+
</ul>
291421
</nav>
292422
<button
293423
style="background: none; border: 0; cursor: pointer; width: var(--sui-header-height, 60px); height: var(--sui-header-height, 60px);"
@@ -400,7 +530,7 @@ exports[`createUserMenu creates a menu.... 1`] = `
400530
style="background: var(--sui-bg-panel, white); border: solid 1px var(--sui-text, #000000); border-right: 0; position: absolute; right: 0; top: var(--sui-header-height, 60px); width: 200px; z-index: var(--sui-z-dropdown, 1); display: none;"
401531
>
402532
<ul
403-
style="undefined"
533+
style="list-style: none; margin: 0; padding: 0;"
404534
>
405535
<li
406536
style="border-bottom: solid 1px var(--sui-text, #000000);"

test/unit/widgets/__snapshots__/error.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ exports[`errorMessageBlock creates an error message div 1`] = `
66
>
77
my error message
88
<button
9-
style="width: 2em; height: 2em;"
9+
style="width: var(--sui-icon-size, 2em); height: var(--sui-icon-size, 2em);"
1010
type="button"
1111
>
1212
<img
1313
src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg"
14-
style="width: 2em; height: 2em; opacity: 0.3;"
14+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em); opacity: 0.3;"
1515
title="Cancel"
1616
/>
1717
</button>
@@ -24,12 +24,12 @@ exports[`errorMessageBlock escapes the HTML 1`] = `
2424
>
2525
my &lt;script&gt; kiddie &lt;/script&gt; message
2626
<button
27-
style="width: 2em; height: 2em;"
27+
style="width: var(--sui-icon-size, 2em); height: var(--sui-icon-size, 2em);"
2828
type="button"
2929
>
3030
<img
3131
src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg"
32-
style="width: 2em; height: 2em; opacity: 0.3;"
32+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em); opacity: 0.3;"
3333
title="Cancel"
3434
/>
3535
</button>
@@ -42,12 +42,12 @@ exports[`errorMessageBlock sets the background color 1`] = `
4242
>
4343
my colored message
4444
<button
45-
style="width: 2em; height: 2em;"
45+
style="width: var(--sui-icon-size, 2em); height: var(--sui-icon-size, 2em);"
4646
type="button"
4747
>
4848
<img
4949
src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg"
50-
style="width: 2em; height: 2em; opacity: 0.3;"
50+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em); opacity: 0.3;"
5151
title="Cancel"
5252
/>
5353
</button>

test/unit/widgets/forms/__snapshots__/basic.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ exports[`basicField shows error if no property given 1`] = `
6464
>
6565
Error: No property given for text field: &lt;http://example.com/#form&gt;
6666
<button
67-
style="width: 2em; height: 2em;"
67+
style="width: var(--sui-icon-size, 2em); height: var(--sui-icon-size, 2em);"
6868
type="button"
6969
>
7070
<img
7171
src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg"
72-
style="width: 2em; height: 2em; opacity: 0.3;"
72+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em); opacity: 0.3;"
7373
title="Cancel"
7474
/>
7575
</button>

test/unit/widgets/forms/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports[`TristateField runs 1`] = `
3838
class="formFieldValue"
3939
>
4040
<button
41-
style="font-size: 150%; height: 1.2em; width: 1.2em; background-color: var(--sui-bg-input, #eef); border-radius: var(--sui-border-radius-sm, 0.2em); margin: 0.1em;"
41+
style="font-size: 100%; height: 1em; width: 1em; background-color: var(--sui-bg-input, #eef); border-radius: var(--sui-border-radius-sm, 0.2em); margin: 0.1em;"
4242
>
4343
-
4444
</button>

test/unit/widgets/forms/autocomplete/__snapshots__/autocomplete.test.ts.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ exports[`autocompleteField clicking on row of greenn table then accecpt button s
6969
>
7070
<img
7171
src="https://solidos.github.io/solid-ui/src/icons/noun_1180158.svg"
72-
style="width: 2em; height: 2em;"
72+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em);"
7373
title="Continue"
7474
/>
7575
</button>
@@ -80,7 +80,7 @@ exports[`autocompleteField clicking on row of greenn table then accecpt button s
8080
>
8181
<img
8282
src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg"
83-
style="width: 2em; height: 2em; opacity: 0.3;"
83+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em); opacity: 0.3;"
8484
title="Cancel"
8585
/>
8686
</button>
@@ -91,7 +91,7 @@ exports[`autocompleteField clicking on row of greenn table then accecpt button s
9191
>
9292
<img
9393
src="https://solidos.github.io/solid-ui/src/icons/noun_253504.svg"
94-
style="width: 2em; height: 2em;"
94+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em);"
9595
title="Edit"
9696
/>
9797
</button>
@@ -160,7 +160,7 @@ exports[`autocompleteField creates a autocomplete field 1`] = `
160160
>
161161
<img
162162
src="https://solidos.github.io/solid-ui/src/icons/noun_1180158.svg"
163-
style="width: 2em; height: 2em;"
163+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em);"
164164
title="Continue"
165165
/>
166166
</button>
@@ -171,7 +171,7 @@ exports[`autocompleteField creates a autocomplete field 1`] = `
171171
>
172172
<img
173173
src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg"
174-
style="width: 2em; height: 2em; opacity: 0.3;"
174+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em); opacity: 0.3;"
175175
title="Cancel"
176176
/>
177177
</button>
@@ -182,7 +182,7 @@ exports[`autocompleteField creates a autocomplete field 1`] = `
182182
>
183183
<img
184184
src="https://solidos.github.io/solid-ui/src/icons/noun_253504.svg"
185-
style="width: 2em; height: 2em;"
185+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em);"
186186
title="Edit"
187187
/>
188188
</button>
@@ -286,7 +286,7 @@ exports[`autocompleteField typing more search term till unique selects the whole
286286
>
287287
<img
288288
src="https://solidos.github.io/solid-ui/src/icons/noun_1180158.svg"
289-
style="width: 2em; height: 2em;"
289+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em);"
290290
title="Continue"
291291
/>
292292
</button>
@@ -297,7 +297,7 @@ exports[`autocompleteField typing more search term till unique selects the whole
297297
>
298298
<img
299299
src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg"
300-
style="width: 2em; height: 2em; opacity: 0.3;"
300+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em); opacity: 0.3;"
301301
title="Cancel"
302302
/>
303303
</button>
@@ -308,7 +308,7 @@ exports[`autocompleteField typing more search term till unique selects the whole
308308
>
309309
<img
310310
src="https://solidos.github.io/solid-ui/src/icons/noun_253504.svg"
311-
style="width: 2em; height: 2em;"
311+
style="width: var(--sui-icon-size, 1.5em); height: var(--sui-icon-size, 1.5em); margin: 0.1em; border-radius: var(--sui-border-radius-lg, 1em);"
312312
title="Edit"
313313
/>
314314
</button>

0 commit comments

Comments
 (0)