material-ui

css pseudo selectors with material-ui

孤街醉人 提交于 2020-11-30 20:46:15
问题 I have seen in a lot of the material-ui code that they use pseudo selectors in their react styled components. I thought I would try to do it myself and I cannot get it to work. I'm not sure what I am doing wrong or if this is even possible. I am trying to make some css that will offset this element against the fixed header. import React from 'react'; import { createStyles, WithStyles, withStyles, Typography } from '@material-ui/core'; import { TypographyProps } from '@material-ui/core

css pseudo selectors with material-ui

旧街凉风 提交于 2020-11-30 20:39:48
问题 I have seen in a lot of the material-ui code that they use pseudo selectors in their react styled components. I thought I would try to do it myself and I cannot get it to work. I'm not sure what I am doing wrong or if this is even possible. I am trying to make some css that will offset this element against the fixed header. import React from 'react'; import { createStyles, WithStyles, withStyles, Typography } from '@material-ui/core'; import { TypographyProps } from '@material-ui/core

css pseudo selectors with material-ui

|▌冷眼眸甩不掉的悲伤 提交于 2020-11-30 20:35:22
问题 I have seen in a lot of the material-ui code that they use pseudo selectors in their react styled components. I thought I would try to do it myself and I cannot get it to work. I'm not sure what I am doing wrong or if this is even possible. I am trying to make some css that will offset this element against the fixed header. import React from 'react'; import { createStyles, WithStyles, withStyles, Typography } from '@material-ui/core'; import { TypographyProps } from '@material-ui/core

css pseudo selectors with material-ui

柔情痞子 提交于 2020-11-30 20:34:07
问题 I have seen in a lot of the material-ui code that they use pseudo selectors in their react styled components. I thought I would try to do it myself and I cannot get it to work. I'm not sure what I am doing wrong or if this is even possible. I am trying to make some css that will offset this element against the fixed header. import React from 'react'; import { createStyles, WithStyles, withStyles, Typography } from '@material-ui/core'; import { TypographyProps } from '@material-ui/core

How to change the border color of Material-UI <TextField/>

假装没事ソ 提交于 2020-11-30 04:49:33
问题 I can't seem to figure out how to change the outline color of an outlined variant I looked around GitHub issues and people seem to be pointing towards using the "InputProps" Property but this seems to do nothing. Here is my code in its current state import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import PropTypes from 'prop-types'; const styles = theme => ({ field: { marginLeft: theme.spacing.unit,

How to change the border color of Material-UI <TextField/>

主宰稳场 提交于 2020-11-30 04:49:25
问题 I can't seem to figure out how to change the outline color of an outlined variant I looked around GitHub issues and people seem to be pointing towards using the "InputProps" Property but this seems to do nothing. Here is my code in its current state import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import PropTypes from 'prop-types'; const styles = theme => ({ field: { marginLeft: theme.spacing.unit,

Material-UI Rendering Bugs in production / build

夙愿已清 提交于 2020-11-28 08:09:44
问题 I have big problems building my react-app. I am using material-ui/core v.4.10.2 on the normal react-scripts start dev-server everything works perfectly. But when built and served through Nginx or npm-module serve the rendering is not working correctly... (I saw similar issues on the material-ui Github, but they were all (falsely) closed Here is my package.json in case something's wrong with my dependencies (what I certainly don't think is the case) { "name": "web_app", "version": "0.0.1",

Material-UI Rendering Bugs in production / build

。_饼干妹妹 提交于 2020-11-28 08:06:57
问题 I have big problems building my react-app. I am using material-ui/core v.4.10.2 on the normal react-scripts start dev-server everything works perfectly. But when built and served through Nginx or npm-module serve the rendering is not working correctly... (I saw similar issues on the material-ui Github, but they were all (falsely) closed Here is my package.json in case something's wrong with my dependencies (what I certainly don't think is the case) { "name": "web_app", "version": "0.0.1",

Material-UI Rendering Bugs in production / build

吃可爱长大的小学妹 提交于 2020-11-28 08:04:28
问题 I have big problems building my react-app. I am using material-ui/core v.4.10.2 on the normal react-scripts start dev-server everything works perfectly. But when built and served through Nginx or npm-module serve the rendering is not working correctly... (I saw similar issues on the material-ui Github, but they were all (falsely) closed Here is my package.json in case something's wrong with my dependencies (what I certainly don't think is the case) { "name": "web_app", "version": "0.0.1",