Skip to content

Commit 2ff31e7

Browse files
authored
[Collapsible] Fix max-width bug (#12003)
1 parent 2806dac commit 2ff31e7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/twenty-turtles-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/polaris': patch
3+
---
4+
5+
Fixed max width bug in Collapsible

polaris-react/src/components/Collapsible/Collapsible.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function Collapsible({
8181
overflow: isFullyOpen ? 'visible' : 'hidden',
8282
}
8383
: {
84-
maxWidth: isFullyOpen ? 'auto' : `${size}px`,
84+
maxWidth: isFullyOpen ? 'none' : `${size}px`,
8585
overflow: isFullyOpen ? 'visible' : 'hidden',
8686
}),
8787
};

0 commit comments

Comments
 (0)