Skip to content

Commit

Permalink
fix: StackShim story styles allow content reflow (#28593)
Browse files Browse the repository at this point in the history
  • Loading branch information
smhigley authored Jul 25, 2023
1 parent 8959c81 commit cf90788
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ const styles = {
};

const useCustomStyles = makeStyles({
stackWrapper: {
width: '100%',
},
stack: {
backgroundColor: 'pink',
height: '200px',
width: '450px',
minHeight: '200px',
},
stackItem: {
backgroundColor: 'lightblue',
Expand Down Expand Up @@ -95,7 +97,7 @@ export const Playground = () => {
const shimStyles = useCustomStyles();
const stackShimStyles = shimStyles.stack;
const stackStyles = {
root: { backgroundColor: 'pink', height: '200px', width: '450px' },
root: { backgroundColor: 'pink', minHeight: '200px' },
};
const stackItemStyles = { root: { backgroundColor: 'lightblue' } };
const stackItemShimStyles = shimStyles.stackItem;
Expand Down Expand Up @@ -145,7 +147,7 @@ export const Playground = () => {
</Stack>
</Stack>
<Stack horizontal horizontalAlign={'space-evenly'}>
<div>
<div className={shimStyles.stackWrapper}>
<h2>v8</h2>
<Stack
as={'span'}
Expand Down Expand Up @@ -175,7 +177,7 @@ export const Playground = () => {
<Checkbox label="checkbox 2" styles={stackItemStyles} />
</Stack>
</div>
<div>
<div className={shimStyles.stackWrapper}>
<h2>StackShim</h2>
<StackShim
as={'span'}
Expand Down

0 comments on commit cf90788

Please sign in to comment.