Skip to content

Commit

Permalink
[Collapsible] Fix max-width bug (#12003)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledurand committed May 14, 2024
1 parent 2806dac commit 2ff31e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twenty-turtles-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

Fixed max width bug in Collapsible
2 changes: 1 addition & 1 deletion polaris-react/src/components/Collapsible/Collapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function Collapsible({
overflow: isFullyOpen ? 'visible' : 'hidden',
}
: {
maxWidth: isFullyOpen ? 'auto' : `${size}px`,
maxWidth: isFullyOpen ? 'none' : `${size}px`,
overflow: isFullyOpen ? 'visible' : 'hidden',
}),
};
Expand Down

0 comments on commit 2ff31e7

Please sign in to comment.