Skip to content

Commit

Permalink
Fix fonts modal dialog buttons accessibility. (#58309)
Browse files Browse the repository at this point in the history
* Fix fonts modal dialog buttons accessibility.

* Reapply change after rebase.
  • Loading branch information
afercia authored Jan 30, 2024
1 parent 3fc9c5e commit 7ddc2af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
FlexBlock,
} from '@wordpress/components';
import { chevronLeft } from '@wordpress/icons';
import { __ } from '@wordpress/i18n';

function TabPanelLayout( {
title,
Expand All @@ -33,6 +34,7 @@ function TabPanelLayout( {
onClick={ handleBack }
icon={ chevronLeft }
size="small"
label={ __( 'Back' ) }
/>
) }
{ title && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function UploadFonts() {
className="font-library-modal__upload-area"
onClick={ openFileDialog }
>
<span>{ __( 'Upload font' ) }</span>
{ __( 'Upload font' ) }
</Button>
) }
/>
Expand Down

0 comments on commit 7ddc2af

Please sign in to comment.