From abd792a615856bfb2c84fe1be8b20e46d25142e9 Mon Sep 17 00:00:00 2001 From: Jonathan Zempel Date: Fri, 27 Oct 2023 13:46:49 -0400 Subject: [PATCH] fix(accordions): prevent flex shrink on chevron --- packages/accordions/.size-snapshot.json | 16 ++++++++-------- .../src/styled/accordion/StyledRotateIcon.ts | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/accordions/.size-snapshot.json b/packages/accordions/.size-snapshot.json index 8181cb08820..a88f2a183f0 100644 --- a/packages/accordions/.size-snapshot.json +++ b/packages/accordions/.size-snapshot.json @@ -1,21 +1,21 @@ { "index.esm.js": { - "bundled": 33604, - "minified": 25088, - "gzipped": 5588, + "bundled": 33654, + "minified": 25128, + "gzipped": 5590, "treeshaked": { "rollup": { - "code": 19386, + "code": 19426, "import_statements": 557 }, "webpack": { - "code": 21486 + "code": 21526 } } }, "index.cjs.js": { - "bundled": 36269, - "minified": 27550, - "gzipped": 5810 + "bundled": 36319, + "minified": 27590, + "gzipped": 5812 } } diff --git a/packages/accordions/src/styled/accordion/StyledRotateIcon.ts b/packages/accordions/src/styled/accordion/StyledRotateIcon.ts index 841aec8399e..63932d195d0 100644 --- a/packages/accordions/src/styled/accordion/StyledRotateIcon.ts +++ b/packages/accordions/src/styled/accordion/StyledRotateIcon.ts @@ -50,6 +50,7 @@ export const StyledRotateIcon = styled( ? `${props.theme.space.base * 1.5}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`}; width: ${props => props.theme.iconSizes.md}; + min-width: ${props => props.theme.iconSizes.md}; height: ${props => props.theme.iconSizes.md}; vertical-align: middle;