小编Pet*_*nis的帖子

如何更改 Material-UI <TextField/> 的标签颜色

如何更改“电子邮件”标签的颜色并使其与边框线相同?

示例在这里

这是我的代码:

import React, { Component } from "react";
import { Icon } from "semantic-ui-react";
import { Divider } from "semantic-ui-react";
import { TextField, Button, Grid } from "@material-ui/core";
import PropTypes from "prop-types";
import classNames from "classnames";
import { withStyles } from "@material-ui/core/styles";

let self;

const styles = theme => ({
  container: {
    display: "flex",
    flexWrap: "wrap"
  },
  textField: {
    marginLeft: theme.spacing.unit,
    marginRight: theme.spacing.unit,
    width: 280
  },
  cssLabel: {
    color: "#d3d3d3"
  },
  cssOutlinedInput: {
    "&:not(hover):not($disabled):not($cssFocused):not($error) $notchedOutline": {
      borderColor: "#d3d3d3" //default …
Run Code Online (Sandbox Code Playgroud)

css reactjs material-ui

4
推荐指数
1
解决办法
3439
查看次数

标签 统计

css ×1

material-ui ×1

reactjs ×1