Skip to content

Commit 3b7bf41

Browse files
authored
bugFix:(IconButton) Set the min-width of IconButton to unset (#5078)
* Set the min-width of IconButton to unset * Create dull-beans-dance.md
1 parent 6490b27 commit 3b7bf41

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/dull-beans-dance.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": patch
3+
---
4+
5+
Set the `min-width` of `IconButton` to `unset` to resolve layout issues.

packages/react/src/Button/ButtonBase.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
&:where(.IconButton) {
7272
display: inline-grid;
7373
width: var(--control-medium-size);
74-
min-width: var(--control-medium-size);
74+
min-width: unset;
7575
/* stylelint-disable-next-line primer/spacing */
7676
padding: unset;
7777
place-content: center;

0 commit comments

Comments
 (0)