Console Error: When using Tab component in combination with a label and an icon the console throws "pseudo class :first-child is potentially unsafe" #28547
Labels
duplicate
This issue or pull request already exists
By using Icon Tabs with label the following error will appear in the console twice:
If you remove the label or icon attribute of the component, the error won't appear anymore.
This error also appears in the example of the official mui-documentation about IconLabelTabs:
https://codesandbox.io/s/zhmxj?file=/demo.tsx
Expected Behavior 🤔
No error or warning should appear in the console.
Steps to Reproduce 🕹
https://codesandbox.io/s/zhmxj?file=/demo.tsx
Your Environment 🌎
I'm using the latest @mui-version
"@mui/icons-material": "^5.0.0"
"@mui/lab": "*"
"@mui/material": "^5.0.0"
"@mui/styles": "^5.0.0"
Browser: Chrome Version 93.0.4577.82
The text was updated successfully, but these errors were encountered: