From e901d0a94853488a0f0ff2d653cdb16350beefe6 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 23 Mar 2021 18:01:53 +0100 Subject: [PATCH] File block: Make the editor markup match the frontend (#30148) --- packages/block-library/src/file/edit.js | 22 ++++++++++----------- packages/block-library/src/file/editor.scss | 7 +------ 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/packages/block-library/src/file/edit.js b/packages/block-library/src/file/edit.js index 57b3482e310a0e..766de08b989909 100644 --- a/packages/block-library/src/file/edit.js +++ b/packages/block-library/src/file/edit.js @@ -196,17 +196,17 @@ function FileEdit( { attributes, setAttributes, noticeUI, noticeOperations } ) {
-
- - setAttributes( { fileName: text } ) - } - /> -
+ + setAttributes( { fileName: text } ) + } + href={ textLinkHref } + /> { showDownloadButton && (