Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the latest version of the library, with state="error" all previous steps change color to red #126

Open
woodjs opened this issue Feb 25, 2023 · 1 comment

Comments

@woodjs
Copy link

woodjs commented Feb 25, 2023

"chakra-ui-steps": "^2.0.4",
"@chakra-ui/icons": "^2.0.13",
"@chakra-ui/react": "^2.4.2",
...
export default function TestPage() {
  const { activeStep, setActiveStep } = useSteps({
    initialStep: 2,
  });

  return (
    <Steps activeStep={activeStep} onChange={setActiveStep} state="error">
      <Step label="Label 1" />
      <Step label="Label 2" />
      <Step label="Label 3" />
    </Steps>
  );
}

The official example shows that with state="error" the current step changes color to red, while all previous successful ones remain unchanged, but this code changes all steps to red.

@huseyindeniz
Copy link

huseyindeniz commented Mar 3, 2023

This change is introduced in version 2x and examples page is still using 1x I think. And I agree that showing all previous steps as red is not very proper in most cases. I'm wondering if there is a way to set it as old way: The state which failed is red and all previous ones are green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants