From 18c8c777bce4549190bd6f1073efdf6d896a6041 Mon Sep 17 00:00:00 2001
From: Ramon <ramonjd@users.noreply.github.com>
Date: Fri, 19 Aug 2022 14:47:16 +1000
Subject: [PATCH] Adding color block supports to table of contents block
 (#43363)

---
 docs/reference-guides/core-blocks.md                    | 2 +-
 packages/block-library/src/table-of-contents/block.json | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md
index 4280b5ff370e9..b8beeef967900 100644
--- a/docs/reference-guides/core-blocks.md
+++ b/docs/reference-guides/core-blocks.md
@@ -788,7 +788,7 @@ Summarize your post with a list of headings. Add HTML anchors to Heading blocks
 
 -	**Name:** core/table-of-contents
 -	**Category:** layout
--	**Supports:** spacing (margin, padding), ~~html~~
+-	**Supports:** color (background, gradients, link, text), spacing (margin, padding), ~~html~~
 -	**Attributes:** headings, onlyIncludeCurrentPage
 
 ## Tag Cloud
diff --git a/packages/block-library/src/table-of-contents/block.json b/packages/block-library/src/table-of-contents/block.json
index b305cb3242683..7a887ca4eb8fc 100644
--- a/packages/block-library/src/table-of-contents/block.json
+++ b/packages/block-library/src/table-of-contents/block.json
@@ -22,6 +22,12 @@
 	},
 	"supports": {
 		"html": false,
+		"color": {
+			"text": true,
+			"background": true,
+			"gradients": true,
+			"link": true
+		},
 		"spacing": {
 			"margin": true,
 			"padding": true