Skip to content

Commit

Permalink
Fix showIconLabel issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Dec 19, 2024
1 parent 301d70f commit 57400e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/interface/src/components/complementary-area/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 }
</ComplementaryAreaToggle>
) }
</PinnedItems>
) }
Expand Down

0 comments on commit 57400e7

Please sign in to comment.