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

How can I style the current active step's label? #86

Open
yash14022001 opened this issue Aug 22, 2022 · 0 comments
Open

How can I style the current active step's label? #86

yash14022001 opened this issue Aug 22, 2022 · 0 comments

Comments

@yash14022001
Copy link

yash14022001 commented Aug 22, 2022

Hey, first of all great stepper, kudos to the development team
I have one query, How can I style the current active step's label design??
Right now I am using this one for customization and I don't know if it is possible to style the current step's label


const CustomSteps = {
  ...StepsStyleConfig,
  baseStyle: (props: any) => {
    console.log("baseStyle ", props);
    return {
      ...StepsStyleConfig.baseStyle(props),
      stepIconContainer: {
        ...StepsStyleConfig.baseStyle(props).stepIconContainer,
        bg: "rgba(0, 0, 0, 0.38)",
        border: "none",
        width: "24px",
        height: "24px",
        _activeStep: {
          bg: "primary",
        },
      },
      label: {
        color: "darkBlue.500",
        fontWeight: "bold",
       // didn't work
        _activeStep: {
          fontWeight: "bold",
          color: "primary.500",
        },

      },
    };
  },
};

Also I edited the main source for removing the "padding" of 8px on connectors left and right calculations, I would like to make a PR for this that based on prop passed to Steps component it will either add or don't add the spacing on left and right on connnectior.....although this was my requirement for project I am working on.....so if this feature is popular to have than let me know

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

1 participant