Skip to content

Commit

Permalink
[components] Use internal Icon component for `ToggleGroupControlOpt…
Browse files Browse the repository at this point in the history
…ionIcon` (#40717)

* Use internal `Icon` component to support dashicons

* Add changelog note
  • Loading branch information
danieliser authored May 2, 2022
1 parent 4f37807 commit dd1bef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- `InputControl`: Add `__next36pxDefaultSize` flag for larger default size ([#40622](https://github.com/WordPress/gutenberg/pull/40622)).
- `UnitControl`: Add `__next36pxDefaultSize` flag for larger default size ([#40627](https://github.com/WordPress/gutenberg/pull/40627)).
- `ToggleControlGroup`: Switch to internal `Icon` component for dashicon support ([40717](https://github.com/WordPress/gutenberg/pull/40717)).

### Internal

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
/**
* WordPress dependencies
*/
import { Icon } from '@wordpress/icons';

/**
* Internal dependencies
*/
import type { WordPressComponentProps } from '../../ui/context';
import type { ToggleGroupControlOptionIconProps } from '../types';
import { ToggleGroupControlOptionBase } from '../toggle-group-control-option-base';
import Icon from '../../icon';

export default function ToggleGroupControlOptionIcon(
props: WordPressComponentProps<
Expand Down

0 comments on commit dd1bef2

Please sign in to comment.