Skip to content

Commit

Permalink
Replace dash icon with SVG icon (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Jan 15, 2024
1 parent 993571e commit 23ad9a5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/manage-fonts/font-family.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Button, Icon } from '@wordpress/components';
import FontFace from './font-face';
import { ManageFontsContext } from '../fonts-context';
import { __, _n } from '@wordpress/i18n';
import { chevronUp, chevronDown } from '@wordpress/icons';

function FontFamily( { fontFamily, deleteFont } ) {
const { familiesOpen, handleToggleFamily } =
Expand Down Expand Up @@ -70,11 +71,7 @@ function FontFamily( { fontFamily, deleteFont } ) {
</Button>
<Button onClick={ toggleIsOpen }>
<Icon
icon={
isOpen
? 'arrow-up-alt2'
: 'arrow-down-alt2'
}
icon={ isOpen ? chevronUp : chevronDown }
/>
</Button>
</div>
Expand Down

0 comments on commit 23ad9a5

Please sign in to comment.