From e27d288ed7dcda1ff36de33746501b7a7947467b Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Tue, 1 Oct 2024 14:50:51 +0200 Subject: [PATCH] Add content roles to file block attributes --- packages/block-library/src/file/block.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/file/block.json b/packages/block-library/src/file/block.json index bf0082c576dd16..2c5e888c2aff64 100644 --- a/packages/block-library/src/file/block.json +++ b/packages/block-library/src/file/block.json @@ -16,7 +16,8 @@ "role": "local" }, "href": { - "type": "string" + "type": "string", + "role": "content" }, "fileId": { "type": "string", @@ -27,13 +28,15 @@ "fileName": { "type": "rich-text", "source": "rich-text", - "selector": "a:not([download])" + "selector": "a:not([download])", + "role": "content" }, "textLinkHref": { "type": "string", "source": "attribute", "selector": "a:not([download])", - "attribute": "href" + "attribute": "href", + "role": "content" }, "textLinkTarget": { "type": "string", @@ -48,7 +51,8 @@ "downloadButtonText": { "type": "rich-text", "source": "rich-text", - "selector": "a[download]" + "selector": "a[download]", + "role": "content" }, "displayPreview": { "type": "boolean"