diff --git a/CHANGELOG.md b/CHANGELOG.md index 25738ef630..d4953af444 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixes - Add aria posinset and setsize, hide menu indicator from narration @jurokapsiar ([#1066](https://github.com/stardust-ui/react/pull/1066)) - Fix applying accessibility key handlers @layershifter ([#1072](https://github.com/stardust-ui/react/pull/1072)) +- Fix `shrink` prop behavior for `Flex.Item` @kuzhelov ([#1086](https://github.com/stardust-ui/react/pull/1086)) ### Features - Add `Alert` component @Bugaa92 ([#1063](https://github.com/stardust-ui/react/pull/1063)) diff --git a/packages/react/src/themes/teams/components/Flex/flexItemStyles.ts b/packages/react/src/themes/teams/components/Flex/flexItemStyles.ts index 404cd4a76d..f8b6bb9125 100644 --- a/packages/react/src/themes/teams/components/Flex/flexItemStyles.ts +++ b/packages/react/src/themes/teams/components/Flex/flexItemStyles.ts @@ -11,7 +11,7 @@ const flexItemStyles: ComponentSlotStylesInput ...(p.size && toFlexItemSizeValues(v[p.size])), - ...(p.shrink && { flexShrink: p.shrink }), + ...(typeof p.shrink === 'number' && { flexShrink: p.shrink }), ...(p.shrink === false && { flexShrink: 0 }), ...(p.grow && { flexGrow: p.grow }),