Skip to content

Commit

Permalink
PaletteEdit: Add appropriate size props to Buttons (#66590)
Browse files Browse the repository at this point in the history
* PaletteEdit: Add appropriate size props to Buttons

* Add changelog

Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: tyxla <tyxla@git.wordpress.org>
  • Loading branch information
4 people authored Oct 30, 2024
1 parent 3e151e2 commit 422987b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Enhancements

- `PaletteEdit`: Add appropriate size props to Buttons ([#66590](https://github.com/WordPress/gutenberg/pull/66590)).

### Internal

- `Snackbar`: Use link variant for action Button ([#66560](https://github.com/WordPress/gutenberg/pull/66560)).
Expand Down
5 changes: 5 additions & 0 deletions packages/components/src/palette-edit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ function Option< T extends PaletteElement >( {
<Item ref={ setPopoverAnchor } size="small">
<HStack justify="flex-start">
<Button
size="small"
onClick={ () => {
setIsEditingColor( true );
} }
Expand Down Expand Up @@ -501,6 +502,7 @@ export function PaletteEdit( {
<NavigableMenu role="menu">
{ ! isEditing && (
<Button
__next40pxDefaultSize
variant="tertiary"
onClick={ () => {
setIsEditing( true );
Expand All @@ -513,6 +515,7 @@ export function PaletteEdit( {
) }
{ ! canOnlyChangeValues && (
<Button
__next40pxDefaultSize
variant="tertiary"
onClick={ () => {
setEditingElement(
Expand All @@ -535,6 +538,8 @@ export function PaletteEdit( {
) }
{ canReset && (
<Button
__next40pxDefaultSize
className="components-palette-edit__menu-button"
variant="tertiary"
onClick={ () => {
setEditingElement(
Expand Down

0 comments on commit 422987b

Please sign in to comment.