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

Component styles are not independently customisable #730

Closed
bigomega opened this issue Jun 1, 2015 · 1 comment
Closed

Component styles are not independently customisable #730

bigomega opened this issue Jun 1, 2015 · 1 comment
Labels
package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.

Comments

@bigomega
Copy link

bigomega commented Jun 1, 2015

All the components styles are based on the Primary and Accent color(which could be changed). But Having different primary colors seems not possible. For instance, i can't have any other color than the primary in text fields...

...
      underline: {
        border: 'none',
        borderBottom: 'solid 1px ' + this.getTheme().borderColor,
        position: 'absolute',
        width: '100%',
        bottom: 8,
        margin: 0,
        MozBoxSizing: 'content-box',
        boxSizing: 'content-box',
        height: 0
      },
...

styles.focusUnderline = this.mergeAndPrefix(styles.underline, {
  borderBottom: 'solid 2px ' + this.getTheme().primary1Color,
  transform: 'scaleX(0)',
  transition: Transitions.easeOut() });
...

var focusUnderlineElement = React.createElement('hr', { style: this.mergeAndPrefix(styles.focusUnderline) });

Either of the merge and prefix could get the stylings as a prop from the user

@hai-cea
Copy link
Member

hai-cea commented Jun 19, 2015

@bigomega Thanks - this should be addressed with #864

@hai-cea hai-cea closed this as completed Jun 19, 2015
@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 25, 2022
@zannager zannager added package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Projects
None yet
Development

No branches or pull requests

4 participants