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

Change the color of under-bottom line of textboxes #137

Closed
webcluster4u opened this issue Aug 25, 2020 · 1 comment · Fixed by #158
Closed

Change the color of under-bottom line of textboxes #137

webcluster4u opened this issue Aug 25, 2020 · 1 comment · Fixed by #158

Comments

@webcluster4u
Copy link

Version

latest

Reproduction link

https://www.creative-tim.com/product/material-kit-pro-react

Operating System

Windows

Device

Windows

Browser & Version

Chrome (latest)

Steps to reproduce

Hi,

I am working on LOG-IN page and there is a CustomInput component, and I would like to know how to change the color of under-line of the textbox (which is an Input materil-ui componet)?

I have tried with ThemeProvider wraping the CustomInput but with no luck

const theme = createMuiTheme({
palette: {
  primary: {
    main: green[500],
  },
  secondary: {
    main:  green[500],
  },
},
});

.....

</ThemeProvider theme={theme}>
                    <CustomInput
                      id="first"
                      formControlProps={{
                        fullWidth: true
                      }}
                      inputProps={{
                        onChange: e => change1(e),
                        placeholder: "First Name...",
                        type: "text",
                        startAdornment: (
                          <InputAdornment position="start">
                            <Face className={classes.inputIconsColor} />
                          </InputAdornment>
                        )
                      }}
                      InputLabelProps={{
  className: classes.cssLabels
}}
                    />
</ThemeProvider>

I have couple of questions:
1- How to change the under-line color of textboxes in LOG-IN page or across whole pages and website
2- How to change the color of primary and secondary palettes across whole pages?
Regards,
Mahdi

What is expected?

Changing the color of textboxes in whole pages

What is actually happening?

I have tried several ways but with no luck


Solution

Additional comments

@webcluster4u webcluster4u changed the title [Bug] Change the color of under-bottom line of textboxes Change the color of under-bottom line of textboxes Aug 26, 2020
@einazare
Copy link
Contributor

Hello there, @Bazarganigilani ,

I do not know why, but Github never notified me about your issue.
Do you still need help with this?

Best,
Manu

einazare added a commit that referenced this issue May 7, 2021
Closes #145
Closes #140
Closes #138
Closes #137
Closes #133
Closes #16
This was referenced May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants