Skip to content

Commit

Permalink
Add missing flex-shrink: 0 to iui-button-icon (#2396)
Browse files Browse the repository at this point in the history
r100-stack authored Jan 9, 2025
1 parent 310ddc9 commit 9516dcd
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-donkeys-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@itwin/itwinui-react': patch
---

Fixed rare bug where icons in button components (e.g. `Button`, `SidenavButton`, etc.) were becoming 0 in width when less space was available.
1 change: 1 addition & 0 deletions packages/itwinui-css/src/button/base.scss
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@ $disabledButtonSelectors: '[disabled], :disabled, [aria-disabled="true"], [data-

@mixin iui-button-icon {
display: inline-flex;
flex-shrink: 0;

svg {
@include mixins.iui-icon-style('m');

0 comments on commit 9516dcd

Please sign in to comment.