Skip to content

Commit

Permalink
bugFix:(IconButton) Set the min-width of IconButton to unset (#5078)
Browse files Browse the repository at this point in the history
* Set the min-width of IconButton to unset

* Create dull-beans-dance.md
  • Loading branch information
jonrohan authored Oct 7, 2024
1 parent 6490b27 commit 3b7bf41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-beans-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

Set the `min-width` of `IconButton` to `unset` to resolve layout issues.
2 changes: 1 addition & 1 deletion packages/react/src/Button/ButtonBase.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
&:where(.IconButton) {
display: inline-grid;
width: var(--control-medium-size);
min-width: var(--control-medium-size);
min-width: unset;
/* stylelint-disable-next-line primer/spacing */
padding: unset;
place-content: center;
Expand Down

0 comments on commit 3b7bf41

Please sign in to comment.