Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Add `Tabs` primitive ([#74652](https://github.com/WordPress/gutenberg/pull/74652)).

### Enhancements

- `Button`: Add minimum content width (`6ch` + padding) to prevent overly narrow buttons with short labels ([#75133](https://github.com/WordPress/gutenberg/pull/75133)).

## 0.6.0 (2026-01-29)

### New Features
Expand Down
3 changes: 3 additions & 0 deletions packages/ui/src/button/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
--wp-ui-button-height: 40px;
--wp-ui-button-aspect-ratio: auto; /* Useful for overrides such as icon buttons */
--wp-ui-button-font-size: var(--wpds-font-size-md);
--wp-ui-button-min-width: calc(4ch + 2 * var(--wp-ui-button-padding-inline));

/* by default, borders have the same color as the background */
--wp-ui-button-border-color: var(--wp-ui-button-background-color);
Expand All @@ -34,6 +35,7 @@
align-items: center;
gap: calc(2 * var(--wpds-dimension-base)); /* TODO: Consider new interactive/control gap tokens */
aspect-ratio: var(--wp-ui-button-aspect-ratio);
min-width: var(--wp-ui-button-min-width);
height: var(--wp-ui-button-height);
padding-inline: var(--wp-ui-button-padding-inline);
border-style: solid;
Expand Down Expand Up @@ -188,6 +190,7 @@
}

.is-unstyled {
min-width: unset;
border: none;
background: none;
}
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/icon-button/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
.icon-button {
--wp-ui-button-aspect-ratio: 1;
--wp-ui-button-padding-inline: 0;
--wp-ui-button-min-width: unset;
}
}
Loading