diff --git a/packages/interface/src/components/complementary-area/index.js b/packages/interface/src/components/complementary-area/index.js index af56cf0c1755e1..bb8774173cf65c 100644 --- a/packages/interface/src/components/complementary-area/index.js +++ b/packages/interface/src/components/complementary-area/index.js @@ -16,7 +16,7 @@ import { } from '@wordpress/components'; import { useDispatch, useSelect } from '@wordpress/data'; import { __ } from '@wordpress/i18n'; -import { check, starEmpty, starFilled } from '@wordpress/icons'; +import { starEmpty, starFilled } from '@wordpress/icons'; import { useEffect, useRef, useState } from '@wordpress/element'; import { store as viewportStore } from '@wordpress/viewport'; import { store as preferencesStore } from '@wordpress/preferences'; @@ -277,12 +277,14 @@ function ComplementaryArea( { aria-expanded={ isActive } aria-disabled={ isLoading } label={ title } - icon={ showIconLabels ? check : icon } + icon={ showIconLabels ? undefined : icon } showTooltip={ ! showIconLabels } variant={ showIconLabels ? 'tertiary' : undefined } size="compact" shortcut={ toggleShortcut } - /> + > + { showIconLabels && title } + ) } ) }