From 3aa3023ff4e8622373eb4af8b85824fa9d33414d Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 26 Jan 2024 14:09:26 +0100 Subject: [PATCH 1/2] Fix fonts modal dialog buttons accessibility. --- .../global-styles/font-library-modal/tab-panel-layout.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/tab-panel-layout.js b/packages/edit-site/src/components/global-styles/font-library-modal/tab-panel-layout.js index 13c2d04db7914..7250e0a745ce5 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/tab-panel-layout.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/tab-panel-layout.js @@ -12,6 +12,7 @@ import { FlexBlock, } from '@wordpress/components'; import { chevronLeft } from '@wordpress/icons'; +import { __ } from '@wordpress/i18n'; function TabPanelLayout( { title, @@ -33,6 +34,7 @@ function TabPanelLayout( { onClick={ handleBack } icon={ chevronLeft } size="small" + label={ __( 'Back' ) } /> ) } { title && ( From ac488bd2d737c4b629b10e67a6453b7aff977a5b Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 26 Jan 2024 15:28:13 +0100 Subject: [PATCH 2/2] Reapply change after rebase. --- .../components/global-styles/font-library-modal/upload-fonts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/upload-fonts.js b/packages/edit-site/src/components/global-styles/font-library-modal/upload-fonts.js index f183ff962c778..3216ae400e143 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/upload-fonts.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/upload-fonts.js @@ -192,7 +192,7 @@ function UploadFonts() { className="font-library-modal__upload-area" onClick={ openFileDialog } > - { __( 'Upload font' ) } + { __( 'Upload font' ) } ) } />