jss

material-ui jss-rtl - after using jss-rtl my page is still LTR

拜拜、爱过 提交于 2019-11-30 17:14:44
问题 I'm using material-ui and next and jss-rtl in my react project but there is a problem the page is still ltr after using <JssProvider ...> -rtl component code: import React from "react"; import { create } from 'jss'; import rtl from 'jss-rtl'; import JssProvider from 'react-jss/lib/JssProvider'; import { createGenerateClassName, jssPreset } from 'material-ui/styles'; // Configure JSS const jss = create({ plugins: [...jssPreset().plugins, rtl()] }); // Custom Material-UI class name generator.

Styling the placeholder in a TextField

冷暖自知 提交于 2019-11-29 17:51:44
问题 The TextField API doesn't mention anything about how one could style the pseudo placeholder element of the input element. Basically, I would like to change the default styling of the placeholder text, and the normal bag of tricks doesn't work, as I cannot access the element. Is there a way I can get to it? And if so, what is the JSS/React/DOM equivalent way of writing ::-webkit-input-placeholder ? 回答1: Case 1 Put the desired placeholder text in the label property of the TextField component,