Skip to content

Commit 73d0dd6

Browse files
matthprostlisalupi
authored andcommitted
refactor: label and password check to vanilla extract (#5517)
* refactor: label and password check to vanilla extract * fix: update snapshots
1 parent 37f239f commit 73d0dd6

File tree

19 files changed

+2552
-3178
lines changed

19 files changed

+2552
-3178
lines changed

packages/form/src/components/CheckboxGroupField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 114 additions & 122 deletions
Large diffs are not rendered by default.

packages/form/src/components/RadioGroupField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 82 additions & 94 deletions
Large diffs are not rendered by default.

packages/form/src/components/SelectableCardGroupField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 290 additions & 365 deletions
Large diffs are not rendered by default.

packages/form/src/components/SelectableCardOptionGroupField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 140 additions & 177 deletions
Large diffs are not rendered by default.

packages/form/src/components/Submit/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
exports[`submit > form is invalid 1`] = `
44
<DocumentFragment>
55
.emotion-0 {
6-
cursor: pointer;
7-
}
8-
9-
.emotion-2 {
106
display: -webkit-box;
117
display: -webkit-flex;
128
display: -ms-flexbox;
@@ -20,69 +16,69 @@ exports[`submit > form is invalid 1`] = `
2016
border-radius: 0.25rem;
2117
}
2218
23-
.emotion-2>.emotion-5 {
19+
.emotion-0>.emotion-3 {
2420
color: #3f4250;
2521
}
2622
27-
.emotion-2>.emotion-5::-webkit-input-placeholder {
23+
.emotion-0>.emotion-3::-webkit-input-placeholder {
2824
color: #727683;
2925
}
3026
31-
.emotion-2>.emotion-5::-moz-placeholder {
27+
.emotion-0>.emotion-3::-moz-placeholder {
3228
color: #727683;
3329
}
3430
35-
.emotion-2>.emotion-5:-ms-input-placeholder {
31+
.emotion-0>.emotion-3:-ms-input-placeholder {
3632
color: #727683;
3733
}
3834
39-
.emotion-2>.emotion-5::placeholder {
35+
.emotion-0>.emotion-3::placeholder {
4036
color: #727683;
4137
}
4238
43-
.emotion-2[data-success='true'] {
39+
.emotion-0[data-success='true'] {
4440
border-color: #22674e;
4541
}
4642
47-
.emotion-2[data-error='true'] {
43+
.emotion-0[data-error='true'] {
4844
border-color: #b3144d;
4945
}
5046
51-
.emotion-2[data-readonly='true'] {
47+
.emotion-0[data-readonly='true'] {
5248
background: #f9f9fa;
5349
border-color: #d9dadd;
5450
}
5551
56-
.emotion-2[data-disabled='true'] {
52+
.emotion-0[data-disabled='true'] {
5753
background: #f3f3f4;
5854
border-color: #e9eaeb;
5955
}
6056
61-
.emotion-2[data-disabled='true']>.emotion-5 {
57+
.emotion-0[data-disabled='true']>.emotion-3 {
6258
color: #b5b7bd;
6359
}
6460
65-
.emotion-2[data-disabled='true']>.emotion-5::-webkit-input-placeholder {
61+
.emotion-0[data-disabled='true']>.emotion-3::-webkit-input-placeholder {
6662
color: #b5b7bd;
6763
}
6864
69-
.emotion-2[data-disabled='true']>.emotion-5::-moz-placeholder {
65+
.emotion-0[data-disabled='true']>.emotion-3::-moz-placeholder {
7066
color: #b5b7bd;
7167
}
7268
73-
.emotion-2[data-disabled='true']>.emotion-5:-ms-input-placeholder {
69+
.emotion-0[data-disabled='true']>.emotion-3:-ms-input-placeholder {
7470
color: #b5b7bd;
7571
}
7672
77-
.emotion-2[data-disabled='true']>.emotion-5::placeholder {
73+
.emotion-0[data-disabled='true']>.emotion-3::placeholder {
7874
color: #b5b7bd;
7975
}
8076
81-
.emotion-2:not([data-disabled='true']):not([data-readonly]):hover {
77+
.emotion-0:not([data-disabled='true']):not([data-readonly]):hover {
8278
border-color: #8c40ef;
8379
}
8480
85-
.emotion-4 {
81+
.emotion-2 {
8682
-webkit-flex: 1;
8783
-ms-flex: 1;
8884
flex: 1;
@@ -95,11 +91,11 @@ exports[`submit > form is invalid 1`] = `
9591
font-size: 0.875rem;
9692
}
9793
98-
.emotion-4[data-size='large'] {
94+
.emotion-2[data-size='large'] {
9995
font-size: 1rem;
10096
}
10197
102-
.emotion-4[data-size='small'] {
98+
.emotion-2[data-size='small'] {
10399
padding-left: 0.5rem;
104100
}
105101
@@ -115,14 +111,14 @@ exports[`submit > form is invalid 1`] = `
115111
style="--uv_4k0ekn0: var(--uv_4k0ekn0); --uv_4k0ekn1: var(--uv_4k0ekn1); --uv_4k0ekn2: var(--uv_4k0ekn2); --uv_4k0ekn3: var(--uv_4k0ekn3);"
116112
>
117113
<label
118-
class="emotion-0 emotion-1 uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owi uv_m4c9owq uv_m4c9ow1b uv_m4c9ow20 uv_m4c9ow3c"
114+
class="uv_17td3g91 uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owi uv_m4c9owq uv_m4c9ow1b uv_m4c9ow20 uv_m4c9ow3c"
119115
for="«r1»"
120116
>
121117
test
122118
</label>
123119
<div>
124120
<div
125-
class="emotion-2 emotion-3"
121+
class="emotion-0 emotion-1"
126122
data-disabled="false"
127123
data-error="false"
128124
data-has-focus="false"
@@ -131,7 +127,7 @@ exports[`submit > form is invalid 1`] = `
131127
>
132128
<input
133129
aria-invalid="false"
134-
class="emotion-4 emotion-5"
130+
class="emotion-2 emotion-3"
135131
data-size="large"
136132
id="_r_1_"
137133
name="toto"

0 commit comments

Comments
 (0)