Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Change the border Color of reactstrap input component

I am trying to override the color of reactstrap input component
Currently It looks like this
enter image description here

and this is my implementation:

          <Input
                    invalid={formik.errors.password ? true : false}
                    className="login-input"
                    id="password"
                    name="password"
                    placeholder="Password"
                    type="password"
                    autoComplete="new-password"
                    onBlur={formik.handleBlur}
                    onChange={formik.handleChange}
                    value={formik.values.password}
                  />

css:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

.login-input:focus {
    border-color: white !important;
}

>Solution :

reactstrap inputs also get a box-shadow, so try this:
(!important might not be necessary)

.login-input:focus {
    border-color: white !important;
    box-shadow: none !important;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading