[TextField] Improve outlined variant customization
See original GitHub issueThe documentation doesn’t mention the class name to customize the outline when using a Textfield with the outlined variant.
- This is not a v0.x issue.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
In the Input api page, the CSS Api should list the notchedOutline
class property name.
Current Behavior
Currently there is nothing in the documentation that allow us to know how to customize the outline.
Context
Changing the color of the border.
Your Environment
Tech | Version |
---|---|
Material-UI | v3.3.0 |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:24 (9 by maintainers)
Top Results From Across the Web
[TextField] Improve outlined variant customization #13347
The documentation doesn't mention the class name to customize the outline when using a Textfield with the outlined variant.
Read more >Text fields - Material Design
Crane's outlined text fields use custom color on three elements: the input text, label text, and container. Element, Category, Attribute, Value. Input text ......
Read more >material ui TextField variant outlined, problem with react-seles
I solved this with a zIndex on the <TextField : <TextField label="Points" type="number" min={1} max={999} value={props.question.value} ...
Read more >Breaking changes in v5, part two: core components - Material UI
The label prop now fulfills the same purpose, using the CSS layout instead of JavaScript measurements to render the gap in the outlined...
Read more >Text Field - Material Components for the Web
Variants. Full Width. Full width text fields are useful for in-depth tasks ... NOTE: Do not use mdc-text-field--outlined to style a full width...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The customization story was overlooked when implementing this outlined variant. Right now, you can change the color like this:
https://codesandbox.io/s/7jpl38xm1x
Going forward, I think that we should extract the state logic style out from the private
NotchedOutline.js
component and move it to theOutlinedInput.js
component.@serendipity1004: Let us know what you think:
https://codesandbox.io/s/ry26oj1rkq