[CSS form label issue]
See original GitHub issueAfter updating tss-react
from v3.7.1 to v4.0.0, the Form labels are changed and lost CSS, they have covered text fields
<FormControl
fullWidth={props.fullWidth}
required={props.required}
>
<InputLabel
error={props.error}
htmlFor={props.htmlFor}
required={props.required}
>
<Typography fontSize={14} fontWeight="400" component="span">
{props.label}
</Typography>
</InputLabel>
{textField}
</FormControl>
Issue Analytics
- State:
- Created a year ago
- Comments:39 (18 by maintainers)
Top Results From Across the Web
HTML Inputs and Labels: A Love Story | CSS-Tricks
There are two ways to pair a label and an input. One is by wrapping the input in a label (implicit), and the...
Read more >CSS for Labels, Buttons and Form Interactions - HTML Goodies
This fourth part in a web development tutorial focuses on how to create and style form labels and buttons in CSS. Learn more....
Read more >CSS label element in in form won't display properly
The final issue is that#aform label appears on the right of the inputs, thanks for your help again. That looks like the final...
Read more >The Label element - HTML: HyperText Markup Language | MDN
If the label's text needs to be adjusted visually, use CSS classes applied to the <label> element instead. If a form, or a...
Read more >Help with Form CSS / Troubleshooting (labels)
I'm trying to help one of our designers with Form troubleshooting. Field labels should align left above the fields.
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
Hi @ivan-romanchuk-axon and @jano-gazashvili-axon this should be fixed in @mui/material 5.10.7.
Can you confirm?
Reopen if it’s not the case!
Best regards,
Hello @garronej!
I updated a sandbox for reproducing issue with Select components. Now I chose
tss-react
version 3.7.1, you can see all styles apply well. Then change a version to an actual one, and you will see that styles are broken