Skip to content

Commit

Permalink
fixes collapsible not opening
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitskvmdam committed Oct 14, 2021
1 parent 2f603df commit d1eb3e3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/inline-alert/inline-alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const InlineAlert = (props: InlineAlertProps): JSX.Element => {
}

return (
<Collapsible isOpen={isOpen} {...containerProps}>
<Collapsible in={isOpen} {...containerProps}>
<InlineAlertRoot
isOpen
type={type}
Expand Down
8 changes: 4 additions & 4 deletions src/stepper/stepper.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ const Template: Story = (args) => {
return (
<Box>
<Button color="info" variant="ghost" onClick={decreaseStep}>
Decrease Step
Previous Step
</Button>
<Button
csx={{ root: { margin: '0 0 1rem 1rem' } }}
onClick={increaseStep}
color="info"
variant="ghost"
>
Increase Step
Next Step
</Button>

<Stepper stepsStatus={stepsStatus} activeStep={step} {...args} />
Expand Down Expand Up @@ -115,15 +115,15 @@ const Template2: Story = (args) => {
return (
<Box>
<Button color="info" variant="ghost" onClick={decreaseStep}>
Decrease Step
Previous Step
</Button>
<Button
csx={{ root: { margin: '0 0 1rem 1rem' } }}
onClick={increaseStep}
color="info"
variant="ghost"
>
Increase Step
Next Step
</Button>

<Stepper stepsStatus={stepsStatus} activeStep={step} {...args} />
Expand Down
2 changes: 1 addition & 1 deletion src/stepper/stepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export const Stepper = (props: StepperProps): JSX.Element => {
</AvatarAndTitleContainer>
<DescriptionContainer
alignment={alignment}
isOpen={activeStep === idx + 1}
in={activeStep === idx + 1}
csx={{ root: csx.description }}
classes={{ root: classes.description }}
isLast={idx + 1 === steps.length}
Expand Down
1 change: 1 addition & 0 deletions src/zoom/zoom.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Template: Story = (props) => {
width: 500,
background: '#232323',
color: '#fff',
padding: '3rem',
},
}}
>
Expand Down

0 comments on commit d1eb3e3

Please sign in to comment.