Comments (1)
Styled does not get applied
@RiccardoRomagnoli Since you're styling the label of the Select, which is rendered via the InputLabel component, you should use the styled API on the FormControl component. The label is outside of the OutlinedInput, so it's not targeted there. Here's the updated CodeSandbox. Additionally, you won't need the custom input
prop.
SSR warning gets thrown: Prop className did not match. Server: "MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary css-f85pof-MuiInputBase-root-MuiOutlinedInput-root" Client: "MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl css-f85pof-MuiInputBase-root-MuiOutlinedInput-root"
I don't see the warning in your provided CodeSandbox, however, it looks related to #27512.
from material-ui.
Related Issues (20)
- [material-ui][Checkbox] Not marked while clicking too fast on iOS (iPhone, iPad, iPad mini)
- [RFC][material-ui] Should variant class names have the `variant` prefix? HOT 1
- [material-ui] Deprecate `components` and `componentsProps` props
- [material-ui] Deprecate `*Component` and `*Props` props HOT 3
- [material-ui] Deprecate composed CSS classes
- [joy-ui][Modal] `ModalClose` applies hover and click only outside the button's icon HOT 4
- [base-ui][FormControl] Export `FormControlOwnerState` type from FormControl
- [material-ui][Rating] `arrowUp` and `arrowDown` are reversed HOT 5
- [material-ui][Avatar] Stop insisting on using an icon for an empty avatar HOT 16
- [docs-infra] API type expander/explorer
- [docs-infra] IntelliSense (quick info) on code previews
- [material-ui][ListItem] Remove props which have been deprecated since 2021 HOT 10
- [tabs] How to stop re-rendering it? HOT 2
- Select value prop HOT 1
- [experimental_extendTheme] Unable to use custom css variable in theme HOT 2
- [material-ui][Menu] Several menu items inside a component are not accessible HOT 4
- [material-ui][Menu] Menu Item custom attribute is not accessible on a select TextField's onChange
- [examples] Build error on the material-ui-nextjs-ts project HOT 3
- [material-ui][docs] v4 docs not available HOT 5
- [material-ui][TextareaAutosize] Resizing unstable and styles not applied in v5.15.11 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui.