Skip to content

Commit 3a4cc5b

Browse files
Merge pull request #35 from moveyourdigital/issue-34-fix-table
Fix Table block with new format
2 parents c6f8927 + 57cc76c commit 3a4cc5b

File tree

4 files changed

+254
-68
lines changed

4 files changed

+254
-68
lines changed

src/__snapshots__/index.test.tsx.snap

+50-22
Original file line numberDiff line numberDiff line change
@@ -133,20 +133,28 @@ Array [
133133
</caption>
134134
<thead>
135135
<tr>
136-
<th>
136+
<th
137+
scope="col"
138+
>
137139
Name
138140
</th>
139-
<th>
141+
<th
142+
scope="col"
143+
>
140144
Qtd
141145
</th>
142-
<th>
146+
<th
147+
scope="col"
148+
>
143149
Price
144150
</th>
145151
</tr>
146152
</thead>
147153
<tbody>
148154
<tr>
149-
<th>
155+
<th
156+
scope="row"
157+
>
150158
Kine
151159
</th>
152160
<td>
@@ -157,7 +165,9 @@ Array [
157165
</td>
158166
</tr>
159167
<tr>
160-
<th>
168+
<th
169+
scope="row"
170+
>
161171
Pigs
162172
</th>
163173
<td>
@@ -168,7 +178,9 @@ Array [
168178
</td>
169179
</tr>
170180
<tr>
171-
<th>
181+
<th
182+
scope="row"
183+
>
172184
Chickens
173185
</th>
174186
<td>
@@ -181,15 +193,17 @@ Array [
181193
</tbody>
182194
<tfoot>
183195
<tr>
184-
<th>
196+
<th
197+
scope="row"
198+
>
185199
Total
186200
</th>
187-
<th>
201+
<td>
188202
16 pcs
189-
</th>
190-
<th>
203+
</td>
204+
<td>
191205
$450
192-
</th>
206+
</td>
193207
</tr>
194208
</tfoot>
195209
</table>,
@@ -275,20 +289,28 @@ Array [
275289
</caption>
276290
<thead>
277291
<tr>
278-
<th>
292+
<th
293+
scope="col"
294+
>
279295
Name
280296
</th>
281-
<th>
297+
<th
298+
scope="col"
299+
>
282300
Qtd
283301
</th>
284-
<th>
302+
<th
303+
scope="col"
304+
>
285305
Price
286306
</th>
287307
</tr>
288308
</thead>
289309
<tbody>
290310
<tr>
291-
<th>
311+
<th
312+
scope="row"
313+
>
292314
Kine
293315
</th>
294316
<td>
@@ -299,7 +321,9 @@ Array [
299321
</td>
300322
</tr>
301323
<tr>
302-
<th>
324+
<th
325+
scope="row"
326+
>
303327
Pigs
304328
</th>
305329
<td>
@@ -310,7 +334,9 @@ Array [
310334
</td>
311335
</tr>
312336
<tr>
313-
<th>
337+
<th
338+
scope="row"
339+
>
314340
Chickens
315341
</th>
316342
<td>
@@ -323,15 +349,17 @@ Array [
323349
</tbody>
324350
<tfoot>
325351
<tr>
326-
<th>
352+
<th
353+
scope="row"
354+
>
327355
Total
328356
</th>
329-
<th>
357+
<td>
330358
16 pcs
331-
</th>
332-
<th>
359+
</td>
360+
<td>
333361
$450
334-
</th>
362+
</td>
335363
</tr>
336364
</tfoot>
337365
</table>,

0 commit comments

Comments
 (0)