[text field] Visual bug on outlined label in Safari
Open
Nobody has claimed this yet.
browser: Safari
scope: text field
type: bug
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Steps to reproduce
Steps:
- Open Safari
- Go to codeSandbox with
TextFieldvariants - Change component
BoxtoStack - The label is now not rendered properly in Safari with visual bug
Current behavior
The label on an outlined component is not rendered as in Chrome or Firefox.
Expected behavior
To behave similar across platforms
Context
We are trying to use the outlined components inside a Stack, this unfortunately renders badly on Safari:
After a lot of debugging we found that there seems to be a rendering bug on MUI:s side with an outlined component inside a Stack on Safari.
The bug can be "fixed" by adding this css:
@supports (-webkit-appearance: none) {
.MuiOutlinedInput-notchedOutline legend, {
visibility: visible !important;
}
}
Why that solves it, I dont know.
Your environment
npx @mui/envinfo
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Search keywords: Browser: Safari Variant: Outlined Label VisualBug
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.