Open mbehtemam-dsv opened 12 months ago
@mbehtemam-dsv
You can set custom size, check this https://mui.com/material-ui/react-radio-button/#size The third radio element is custom sized
@PunitSoniME Thanks for your reply , but that's not what I want , I would like to change it via theme and pass the size="large" as an prop , if you check the stackblitz you can see I already implemented it but I got warning.
Hey @mbehtemam-dsv, thanks for the report!
As you mentioned, the warning comes from here as the size prop gets forwarded here. The icon looks large because the size prop ends up here. It actually works out of the box without any custom code: example.
The warning is safe to ignore for now. We should eliminate it, so I'm adding it to the v7 milestone, as we'll be doing design updates for that release. We're not doing it right now as there are workarounds, like the one @PunitSoniME mentioned.
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://stackblitz.com/edit/react-hbyt9f-iryn4i?file=Demo.tsx
I've created new size for Radio button , the large size , but I got this warning in chrome developer console. It seems it's because of this line of code
Here is the warning :
I've created a Stackblitz live demo so you can check it.
Current behavior 😯
It show warning in console for
Expected behavior 🤔
It should accept custom size without showing warning.
Context 🔦
No response
Your environment 🌎
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo