From 39d802d630f4560e9180ddf1d06bb32663a9ba1e Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 12 Sep 2019 15:52:53 -0400 Subject: [PATCH] The label of the button should not be updated --- packages/components/src/font-size-picker/select.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/font-size-picker/select.js b/packages/components/src/font-size-picker/select.js index b0d6a08055b84b..f0c35a22e4ec7b 100644 --- a/packages/components/src/font-size-picker/select.js +++ b/packages/components/src/font-size-picker/select.js @@ -6,7 +6,7 @@ import { map } from 'lodash'; /** * WordPress dependencies */ -import { __, _x, sprintf } from '@wordpress/i18n'; +import { __, _x } from '@wordpress/i18n'; import { withInstanceId } from '@wordpress/compose'; import { useState, useRef, useCallback, useEffect } from '@wordpress/element'; @@ -146,7 +146,7 @@ function FontSizePickerSelect( { isLarge onClick={ onToggle } aria-expanded={ isOpen } - aria-label={ sprintf( __( 'Customize font size. %s' ), currentFontName ) } + aria-label={ __( 'Font Size' ) } onKeyDown={ handleOnButtonKeyDown } { ...ariaProps } >