@comicrelief/component-library 8.90.0 → 8.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ const OuterWrapper = styled.div`
|
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
20
|
const TopCopyWrapper = styled.div`
|
|
21
|
-
margin:
|
|
21
|
+
margin: 2rem 0 1.5rem;
|
|
22
22
|
display: flex;
|
|
23
23
|
width: 100%;
|
|
24
24
|
`;
|
|
@@ -63,7 +63,7 @@ const FormField = styled.div`${({ theme, $isErroring }) => css`
|
|
|
63
63
|
width: 100%;
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
66
|
-
padding: ${spacing('m')};
|
|
66
|
+
padding: ${spacing('md')} ${spacing('m')};
|
|
67
67
|
background-color: ${theme.color('white')};
|
|
68
68
|
border-radius: 0.5rem;
|
|
69
69
|
border: 1px solid ${$isErroring ? theme.color('red') : theme.color('grey')};
|
|
@@ -92,17 +92,6 @@ const FormField = styled.div`${({ theme, $isErroring }) => css`
|
|
|
92
92
|
}
|
|
93
93
|
`}
|
|
94
94
|
|
|
95
|
-
/* All labels; input AND checkbox */
|
|
96
|
-
label {
|
|
97
|
-
position: relative;
|
|
98
|
-
margin-bottom: 0;
|
|
99
|
-
width: 100%;
|
|
100
|
-
color: inherit;
|
|
101
|
-
font-weight: 600;
|
|
102
|
-
display: flex;
|
|
103
|
-
justify-content: space-between;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
95
|
h3 {
|
|
107
96
|
position: relative;
|
|
108
97
|
margin-bottom: ${spacing('md')};
|
|
@@ -128,13 +117,18 @@ const CheckContainer = styled.div`${({ theme }) => css`
|
|
|
128
117
|
|
|
129
118
|
const CheckLabel = styled.label`${({ theme }) => css`
|
|
130
119
|
position: relative;
|
|
120
|
+
height: 32px;
|
|
121
|
+
margin-bottom: 0;
|
|
122
|
+
width: 100%;
|
|
123
|
+
color: inherit;
|
|
124
|
+
font-weight: 700;
|
|
131
125
|
display: flex;
|
|
132
126
|
align-items: center;
|
|
133
|
-
|
|
127
|
+
justify-content: space-between;
|
|
134
128
|
cursor: pointer;
|
|
135
|
-
|
|
129
|
+
font-size: 0.875rem;
|
|
136
130
|
@media ${theme.allBreakpoints('M')} {
|
|
137
|
-
font-size:
|
|
131
|
+
font-size: 1rem;
|
|
138
132
|
}
|
|
139
133
|
`}`;
|
|
140
134
|
|
|
@@ -147,12 +141,12 @@ const CheckInput = styled.input`${({ theme }) => css`
|
|
|
147
141
|
margin: 0;
|
|
148
142
|
|
|
149
143
|
+ span {
|
|
150
|
-
width:
|
|
151
|
-
height:
|
|
144
|
+
width: 24px;
|
|
145
|
+
height: 24px;
|
|
152
146
|
flex-shrink: 0;
|
|
153
147
|
background-color: ${theme.color('white')};
|
|
154
148
|
border: 1px solid ${theme.color('grey')};
|
|
155
|
-
border-radius: 0.
|
|
149
|
+
border-radius: 0.25rem;
|
|
156
150
|
pointer-events: none;
|
|
157
151
|
}
|
|
158
152
|
|
|
@@ -185,7 +179,7 @@ const ShowHideInputWrapper = styled.div`
|
|
|
185
179
|
}
|
|
186
180
|
`;
|
|
187
181
|
|
|
188
|
-
const ExtraInfo = styled.span`
|
|
182
|
+
const ExtraInfo = styled.span`${({ theme }) => css`
|
|
189
183
|
display: block;
|
|
190
184
|
width: 100%;
|
|
191
185
|
font-size: 1rem;
|
|
@@ -196,7 +190,11 @@ const ExtraInfo = styled.span`
|
|
|
196
190
|
margin-bottom: 0rem;
|
|
197
191
|
margin-top: 1rem;
|
|
198
192
|
color: inherit;
|
|
199
|
-
|
|
193
|
+
font-size: 0.875rem;
|
|
194
|
+
@media ${theme.allBreakpoints('M')} {
|
|
195
|
+
font-size: 1rem;
|
|
196
|
+
}
|
|
197
|
+
|
|
200
198
|
+ label {
|
|
201
199
|
margin-top: ${spacing('md')};
|
|
202
200
|
margin-bottom: 0;
|
|
@@ -220,7 +218,7 @@ const ExtraInfo = styled.span`
|
|
|
220
218
|
}
|
|
221
219
|
}
|
|
222
220
|
}
|
|
223
|
-
`;
|
|
221
|
+
`}`;
|
|
224
222
|
|
|
225
223
|
const MPTextInput = styled(TextInput)`${({ theme, $isErroring }) => css`
|
|
226
224
|
color: ${$isErroring ? theme.color('red') : theme.color('black')};
|