33exports [` Checkbox allows setting props on label 1` ] = `
44<label
55 aria-label = " custom label"
6- className = " sc-bczRLJ XfrOB"
6+ className = " checkbox-label"
7+ style = {
8+ Object {
9+ " --checkbox-color" : " inherit" ,
10+ " --checkbox-disabled-color" : " #e5e5e5" ,
11+ " --checkbox-font-weight" : 700 ,
12+ }
13+ }
714>
815 <input
9- className = " sc-gsnTZi dskNep"
16+ className = " checkbox-input"
17+ style = {
18+ Object {
19+ " --checkbox-bg" : " #ffffff" ,
20+ " --checkbox-bg-unchecked" : " #ffffff" ,
21+ " --checkbox-border-checked" : " 1px solid #d5d5d5" ,
22+ " --checkbox-border-unchecked" : " 1px solid #d5d5d5" ,
23+ " --checkbox-checkmark" : " url('data:image/svg+xml,<svg height=\\ " 125px \\" width=\\ " 125px \\" version=\\ " 1.1 \\" id=\\ " Capa_1 \\" xmlns=\\ " http :// www.w3.org/2000/svg\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" viewBox=\\"0 0 17.837 17.837\\" xml:space=\\"preserve\\" fill=\\"%23000000\\"><g id=\\"SVGRepo_bgCarrier\\" stroke-width=\\"0\\"></g><g id=\\"SVGRepo_tracerCarrier\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"></g><g id=\\"SVGRepo_iconCarrier\\"><g><path style=\\"fill:%235e5e5e;\\" d=\\"M16.145,2.571c-0.272-0.273-0.718-0.273-0.99,0L6.92,10.804l-4.241-4.27 c-0.272-0.274-0.715-0.274-0.989,0L0.204,8.019c-0.272,0.271-0.272,0.717,0,0.99l6.217,6.258c0.272,0.271,0.715,0.271,0.99,0 L17.63,5.047c0.276-0.273,0.276-0.72,0-0.994L16.145,2.571z\\"></path></g></g></svg>')",
24+ " --checkbox-disabled-border" : " 1px solid #d5d5d5" ,
25+ " --checkbox-opacity" : " 1" ,
26+ " --checkbox-size" : " 2rem" ,
27+ }
28+ }
1029 type = " checkbox"
1130 />
1231 Click Me
@@ -15,11 +34,30 @@ exports[`Checkbox allows setting props on label 1`] = `
1534
1635exports [` Checkbox handles disabled state 1` ] = `
1736<label
18- className = " sc-bczRLJ jDFcYw"
37+ className = " checkbox-label checkbox-label--disabled"
38+ style = {
39+ Object {
40+ " --checkbox-color" : " inherit" ,
41+ " --checkbox-disabled-color" : " #e5e5e5" ,
42+ " --checkbox-font-weight" : 400 ,
43+ }
44+ }
1945>
2046 <input
21- className = " sc-gsnTZi dJvfbo "
47+ className = " checkbox-input checkbox-input--disabled "
2248 disabled = { true }
49+ style = {
50+ Object {
51+ " --checkbox-bg" : " #ffffff" ,
52+ " --checkbox-bg-unchecked" : " #ffffff" ,
53+ " --checkbox-border-checked" : " 1px solid #d5d5d5" ,
54+ " --checkbox-border-unchecked" : " 1px solid #d5d5d5" ,
55+ " --checkbox-checkmark" : " none" ,
56+ " --checkbox-disabled-border" : " 1px solid #d5d5d5" ,
57+ " --checkbox-opacity" : " 0.4" ,
58+ " --checkbox-size" : " 1.6rem" ,
59+ }
60+ }
2361 type = " checkbox"
2462 />
2563 Click Me
@@ -28,10 +66,29 @@ exports[`Checkbox handles disabled state 1`] = `
2866
2967exports [` Checkbox handles options 1` ] = `
3068<label
31- className = " sc-bczRLJ XfrOB"
69+ className = " checkbox-label"
70+ style = {
71+ Object {
72+ " --checkbox-color" : " inherit" ,
73+ " --checkbox-disabled-color" : " #e5e5e5" ,
74+ " --checkbox-font-weight" : 700 ,
75+ }
76+ }
3277>
3378 <input
34- className = " sc-gsnTZi dskNep"
79+ className = " checkbox-input"
80+ style = {
81+ Object {
82+ " --checkbox-bg" : " #ffffff" ,
83+ " --checkbox-bg-unchecked" : " #ffffff" ,
84+ " --checkbox-border-checked" : " 1px solid #d5d5d5" ,
85+ " --checkbox-border-unchecked" : " 1px solid #d5d5d5" ,
86+ " --checkbox-checkmark" : " url('data:image/svg+xml,<svg height=\\ " 125px \\" width=\\ " 125px \\" version=\\ " 1.1 \\" id=\\ " Capa_1 \\" xmlns=\\ " http :// www.w3.org/2000/svg\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" viewBox=\\"0 0 17.837 17.837\\" xml:space=\\"preserve\\" fill=\\"%23000000\\"><g id=\\"SVGRepo_bgCarrier\\" stroke-width=\\"0\\"></g><g id=\\"SVGRepo_tracerCarrier\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"></g><g id=\\"SVGRepo_iconCarrier\\"><g><path style=\\"fill:%235e5e5e;\\" d=\\"M16.145,2.571c-0.272-0.273-0.718-0.273-0.99,0L6.92,10.804l-4.241-4.27 c-0.272-0.274-0.715-0.274-0.989,0L0.204,8.019c-0.272,0.271-0.272,0.717,0,0.99l6.217,6.258c0.272,0.271,0.715,0.271,0.99,0 L17.63,5.047c0.276-0.273,0.276-0.72,0-0.994L16.145,2.571z\\"></path></g></g></svg>')",
87+ " --checkbox-disabled-border" : " 1px solid #d5d5d5" ,
88+ " --checkbox-opacity" : " 1" ,
89+ " --checkbox-size" : " 2rem" ,
90+ }
91+ }
3592 type = " checkbox"
3693 />
3794 Click Me
@@ -40,10 +97,29 @@ exports[`Checkbox handles options 1`] = `
4097
4198exports [` Checkbox matches snapshot 1` ] = `
4299<label
43- className = " sc-bczRLJ fIuhsq"
100+ className = " checkbox-label"
101+ style = {
102+ Object {
103+ " --checkbox-color" : " inherit" ,
104+ " --checkbox-disabled-color" : " #e5e5e5" ,
105+ " --checkbox-font-weight" : 400 ,
106+ }
107+ }
44108>
45109 <input
46- className = " sc-gsnTZi ehAXiz"
110+ className = " checkbox-input"
111+ style = {
112+ Object {
113+ " --checkbox-bg" : " #026AA1" ,
114+ " --checkbox-bg-unchecked" : " #ffffff" ,
115+ " --checkbox-border-checked" : " 1px solid #026AA1" ,
116+ " --checkbox-border-unchecked" : " 1px solid #6f6f6f" ,
117+ " --checkbox-checkmark" : " url('data:image/svg+xml,<svg height=\\ " 125px \\" width=\\ " 125px \\" version=\\ " 1.1 \\" id=\\ " Capa_1 \\" xmlns=\\ " http :// www.w3.org/2000/svg\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" viewBox=\\"0 0 17.837 17.837\\" xml:space=\\"preserve\\" fill=\\"%23000000\\"><g id=\\"SVGRepo_bgCarrier\\" stroke-width=\\"0\\"></g><g id=\\"SVGRepo_tracerCarrier\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\"></g><g id=\\"SVGRepo_iconCarrier\\"><g><path style=\\"fill:%23fff;\\" d=\\"M16.145,2.571c-0.272-0.273-0.718-0.273-0.99,0L6.92,10.804l-4.241-4.27 c-0.272-0.274-0.715-0.274-0.989,0L0.204,8.019c-0.272,0.271-0.272,0.717,0,0.99l6.217,6.258c0.272,0.271,0.715,0.271,0.99,0 L17.63,5.047c0.276-0.273,0.276-0.72,0-0.994L16.145,2.571z\\"></path></g></g></svg>')",
118+ " --checkbox-disabled-border" : " 1px solid #d5d5d5" ,
119+ " --checkbox-opacity" : " 1" ,
120+ " --checkbox-size" : " 1.6rem" ,
121+ }
122+ }
47123 type = " checkbox"
48124 />
49125 Click Me
0 commit comments