jeanverster / chakra-ui-steps

Steps component designed to work seamlessly with Chakra UI
https://chakra-ui-steps.vercel.app
390 stars 44 forks source link

Uncaught TypeError: stepIconContainer is undefined when creating a variant #61

Open szczz opened 2 years ago

szczz commented 2 years ago

Hey!

I'm trying to create a custom variant and receive the following error. image

I'm adding the variant to the custom theme like this image

and here is CustomSteps image

If I apply CustomSteps directly to Steps it works perfectly fine. However, I need the variant to prevent the left shift on mobile devices. image

Additionally, if I add stepIconContainer:{} directly to the alternate variant, the page renders but the steps have no styles. Do I need to specifically add the baseStyle for this in CustomSteps? image

My apologies if this is painfully obvious, this is my first project with Chakra.