diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index d575fc96f83fc4..75da6d2c8b9681 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -7,6 +7,7 @@ - `Tooltip`: Explicitly set system font to avoid CSS bleed ([#59307](https://github.com/WordPress/gutenberg/pull/59307)). - `HStack`, `VStack`: Stop passing invalid props to underlying element ([#59416](https://github.com/WordPress/gutenberg/pull/59416)). - `Button`: Fix focus outline in disabled primary variant ([#59391](https://github.com/WordPress/gutenberg/pull/59391)). +- `Button`: Place `children` before the icon when `iconPosition` is `right` ([#59489](https://github.com/WordPress/gutenberg/pull/59489)). ### Internal diff --git a/packages/components/src/button/index.tsx b/packages/components/src/button/index.tsx index 966075dd6e2b9a..a16f190e44704b 100644 --- a/packages/components/src/button/index.tsx +++ b/packages/components/src/button/index.tsx @@ -223,10 +223,10 @@ export function UnforwardedButton( ) } { text && <>{ text } } + { children } { icon && iconPosition === 'right' && ( ) } - { children } );