Skip to content
Merged
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
1 change: 1 addition & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug Fixes

- `IconButton`: Keep the inline padding override valid when reused in button length calculations ([#79722](https://github.com/WordPress/gutenberg/pull/79722)).
- `IconButton`: Restore the default tooltip delay on hover ([#79505](https://github.com/WordPress/gutenberg/pull/79505)).
- `Button`: Fix corner artifacts by using `background-clip: border-box` ([#79524](https://github.com/WordPress/gutenberg/pull/79524))

Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/icon-button/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
@layer compositions {
.icon-button {
--wp-ui-button-aspect-ratio: 1;
--wp-ui-button-padding-inline: 0;
/* stylelint-disable-next-line length-zero-no-unit -- This custom property is reused in Button's min-width calc(), where a unitless zero is invalid. */

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep the disable comment while we figure out a package (or repo) wide approach

--wp-ui-button-padding-inline: 0px;
--wp-ui-button-min-width: unset;
}

Expand Down
Loading