Skip to content

Commit 212f137

Browse files
fix: Remove background color from table props (#1245)
* Removed background color from table props * Updated unit tests
1 parent 8200117 commit 212f137

File tree

9 files changed

+1
-528
lines changed

9 files changed

+1
-528
lines changed

packages/core/src/api/blockManipulation/commands/insertBlocks/__snapshots__/insertBlocks.test.ts.snap

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ exports[`Test insertBlocks > Insert multiple blocks after 1`] = `
395395
},
396396
"id": "table-0",
397397
"props": {
398-
"backgroundColor": "default",
399398
"textColor": "default",
400399
},
401400
"type": "table",
@@ -922,7 +921,6 @@ exports[`Test insertBlocks > Insert multiple blocks before 1`] = `
922921
},
923922
"id": "table-0",
924923
"props": {
925-
"backgroundColor": "default",
926924
"textColor": "default",
927925
},
928926
"type": "table",
@@ -1409,7 +1407,6 @@ exports[`Test insertBlocks > Insert single basic block after 1`] = `
14091407
},
14101408
"id": "table-0",
14111409
"props": {
1412-
"backgroundColor": "default",
14131410
"textColor": "default",
14141411
},
14151412
"type": "table",
@@ -1896,7 +1893,6 @@ exports[`Test insertBlocks > Insert single basic block before 1`] = `
18961893
},
18971894
"id": "table-0",
18981895
"props": {
1899-
"backgroundColor": "default",
19001896
"textColor": "default",
19011897
},
19021898
"type": "table",
@@ -2440,7 +2436,6 @@ exports[`Test insertBlocks > Insert single complex block after 1`] = `
24402436
},
24412437
"id": "table-0",
24422438
"props": {
2443-
"backgroundColor": "default",
24442439
"textColor": "default",
24452440
},
24462441
"type": "table",
@@ -2984,7 +2979,6 @@ exports[`Test insertBlocks > Insert single complex block before 1`] = `
29842979
},
29852980
"id": "table-0",
29862981
"props": {
2987-
"backgroundColor": "default",
29882982
"textColor": "default",
29892983
},
29902984
"type": "table",

packages/core/src/api/blockManipulation/commands/mergeBlocks/__snapshots__/mergeBlocks.test.ts.snap

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,6 @@ exports[`Test mergeBlocks > Basic 1`] = `
327327
},
328328
"id": "table-0",
329329
"props": {
330-
"backgroundColor": "default",
331330
"textColor": "default",
332331
},
333332
"type": "table",
@@ -786,7 +785,6 @@ exports[`Test mergeBlocks > Blocks have different types 1`] = `
786785
},
787786
"id": "table-0",
788787
"props": {
789-
"backgroundColor": "default",
790788
"textColor": "default",
791789
},
792790
"type": "table",
@@ -1245,7 +1243,6 @@ exports[`Test mergeBlocks > First block has children 1`] = `
12451243
},
12461244
"id": "table-0",
12471245
"props": {
1248-
"backgroundColor": "default",
12491246
"textColor": "default",
12501247
},
12511248
"type": "table",
@@ -1703,7 +1700,6 @@ exports[`Test mergeBlocks > Second block has children 1`] = `
17031700
},
17041701
"id": "table-0",
17051702
"props": {
1706-
"backgroundColor": "default",
17071703
"textColor": "default",
17081704
},
17091705
"type": "table",
@@ -2179,7 +2175,6 @@ exports[`Test mergeBlocks > Second block is empty 1`] = `
21792175
},
21802176
"id": "table-0",
21812177
"props": {
2182-
"backgroundColor": "default",
21832178
"textColor": "default",
21842179
},
21852180
"type": "table",

packages/core/src/api/blockManipulation/commands/moveBlock/__snapshots__/moveBlock.test.ts.snap

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ exports[`Test moveBlockDown > Basic 1`] = `
344344
},
345345
"id": "table-0",
346346
"props": {
347-
"backgroundColor": "default",
348347
"textColor": "default",
349348
},
350349
"type": "table",
@@ -820,7 +819,6 @@ exports[`Test moveBlockDown > Into children 1`] = `
820819
},
821820
"id": "table-0",
822821
"props": {
823-
"backgroundColor": "default",
824822
"textColor": "default",
825823
},
826824
"type": "table",
@@ -1296,7 +1294,6 @@ exports[`Test moveBlockDown > Last block 1`] = `
12961294
},
12971295
"id": "table-0",
12981296
"props": {
1299-
"backgroundColor": "default",
13001297
"textColor": "default",
13011298
},
13021299
"type": "table",
@@ -1772,7 +1769,6 @@ exports[`Test moveBlockDown > Out of children 1`] = `
17721769
},
17731770
"id": "table-0",
17741771
"props": {
1775-
"backgroundColor": "default",
17761772
"textColor": "default",
17771773
},
17781774
"type": "table",
@@ -2247,7 +2243,6 @@ exports[`Test moveBlockUp > Basic 1`] = `
22472243
},
22482244
"id": "table-0",
22492245
"props": {
2250-
"backgroundColor": "default",
22512246
"textColor": "default",
22522247
},
22532248
"type": "table",
@@ -2723,7 +2718,6 @@ exports[`Test moveBlockUp > First block 1`] = `
27232718
},
27242719
"id": "table-0",
27252720
"props": {
2726-
"backgroundColor": "default",
27272721
"textColor": "default",
27282722
},
27292723
"type": "table",
@@ -3199,7 +3193,6 @@ exports[`Test moveBlockUp > Into children 1`] = `
31993193
},
32003194
"id": "table-0",
32013195
"props": {
3202-
"backgroundColor": "default",
32033196
"textColor": "default",
32043197
},
32053198
"type": "table",
@@ -3675,7 +3668,6 @@ exports[`Test moveBlockUp > Out of children 1`] = `
36753668
},
36763669
"id": "table-0",
36773670
"props": {
3678-
"backgroundColor": "default",
36793671
"textColor": "default",
36803672
},
36813673
"type": "table",

packages/core/src/api/blockManipulation/commands/removeBlocks/__snapshots__/removeBlocks.test.ts.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ exports[`Test removeBlocks > Remove multiple consecutive blocks 1`] = `
257257
},
258258
"id": "table-0",
259259
"props": {
260-
"backgroundColor": "default",
261260
"textColor": "default",
262261
},
263262
"type": "table",
@@ -1013,7 +1012,6 @@ exports[`Test removeBlocks > Remove single block 1`] = `
10131012
},
10141013
"id": "table-0",
10151014
"props": {
1016-
"backgroundColor": "default",
10171015
"textColor": "default",
10181016
},
10191017
"type": "table",

packages/core/src/api/blockManipulation/commands/replaceBlocks/__snapshots__/replaceBlocks.test.ts.snap

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ exports[`Test replaceBlocks > Remove multiple consecutive blocks 1`] = `
257257
},
258258
"id": "table-0",
259259
"props": {
260-
"backgroundColor": "default",
261260
"textColor": "default",
262261
},
263262
"type": "table",
@@ -1013,7 +1012,6 @@ exports[`Test replaceBlocks > Remove single block 1`] = `
10131012
},
10141013
"id": "table-0",
10151014
"props": {
1016-
"backgroundColor": "default",
10171015
"textColor": "default",
10181016
},
10191017
"type": "table",
@@ -1453,7 +1451,6 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with multiple
14531451
},
14541452
"id": "table-0",
14551453
"props": {
1456-
"backgroundColor": "default",
14571454
"textColor": "default",
14581455
},
14591456
"type": "table",
@@ -1853,7 +1850,6 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with single ba
18531850
},
18541851
"id": "table-0",
18551852
"props": {
1856-
"backgroundColor": "default",
18571853
"textColor": "default",
18581854
},
18591855
"type": "table",
@@ -2310,7 +2306,6 @@ exports[`Test replaceBlocks > Replace multiple consecutive blocks with single co
23102306
},
23112307
"id": "table-0",
23122308
"props": {
2313-
"backgroundColor": "default",
23142309
"textColor": "default",
23152310
},
23162311
"type": "table",
@@ -3841,7 +3836,6 @@ exports[`Test replaceBlocks > Replace single block with multiple 1`] = `
38413836
},
38423837
"id": "table-0",
38433838
"props": {
3844-
"backgroundColor": "default",
38453839
"textColor": "default",
38463840
},
38473841
"type": "table",
@@ -4311,7 +4305,6 @@ exports[`Test replaceBlocks > Replace single block with single basic 1`] = `
43114305
},
43124306
"id": "table-0",
43134307
"props": {
4314-
"backgroundColor": "default",
43154308
"textColor": "default",
43164309
},
43174310
"type": "table",
@@ -4838,7 +4831,6 @@ exports[`Test replaceBlocks > Replace single block with single complex 1`] = `
48384831
},
48394832
"id": "table-0",
48404833
"props": {
4841-
"backgroundColor": "default",
48424834
"textColor": "default",
48434835
},
48444836
"type": "table",

packages/core/src/api/blockManipulation/commands/splitBlock/__snapshots__/splitBlock.test.ts.snap

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ exports[`Test splitBlocks > Basic 1`] = `
361361
},
362362
"id": "table-0",
363363
"props": {
364-
"backgroundColor": "default",
365364
"textColor": "default",
366365
},
367366
"type": "table",
@@ -854,7 +853,6 @@ exports[`Test splitBlocks > Block has children 1`] = `
854853
},
855854
"id": "table-0",
856855
"props": {
857-
"backgroundColor": "default",
858856
"textColor": "default",
859857
},
860858
"type": "table",
@@ -1347,7 +1345,6 @@ exports[`Test splitBlocks > Don't keep props 1`] = `
13471345
},
13481346
"id": "table-0",
13491347
"props": {
1350-
"backgroundColor": "default",
13511348
"textColor": "default",
13521349
},
13531350
"type": "table",
@@ -1840,7 +1837,6 @@ exports[`Test splitBlocks > Don't keep type 1`] = `
18401837
},
18411838
"id": "table-0",
18421839
"props": {
1843-
"backgroundColor": "default",
18441840
"textColor": "default",
18451841
},
18461842
"type": "table",
@@ -2327,7 +2323,6 @@ exports[`Test splitBlocks > End of content 1`] = `
23272323
},
23282324
"id": "table-0",
23292325
"props": {
2330-
"backgroundColor": "default",
23312326
"textColor": "default",
23322327
},
23332328
"type": "table",
@@ -2821,7 +2816,6 @@ exports[`Test splitBlocks > Keep type 1`] = `
28212816
},
28222817
"id": "table-0",
28232818
"props": {
2824-
"backgroundColor": "default",
28252819
"textColor": "default",
28262820
},
28272821
"type": "table",

0 commit comments

Comments
 (0)