[joy-ui][Theme] Components use radius 'sm' irrespective of their own size. #41764
Labels
customization: theme
Centered around the theming features
package: joy-ui
Specific to @mui/joy
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Link to live example: https://stackblitz.com/edit/github-9jgg4d?file=src%2Findex.tsx
Steps:
'sm'
prop in the theme's radius object.var(--joy-radius-sm)
Current behavior
Components like button, input, etc. all use theme radius 'sm' irrespective of their own size ('sm', 'md', 'lg').
Expected behavior
Components like button, input, etc. should (I think) use the theme's size radius appropriate for their own size. E.g
<Button size='lg'>
would use theme radius 'lg' as its radius.At least, that's my assumption of how theme radius works 🙈
Context
Use the JoyUI theme object to theme my app.
Specifically here, to set the radius property for each size variant once (in the theme radius object) and have it apply to all components without the need to provide radius style override for components individually.
Your environment
npx @mui/envinfo
Search keywords: joy-ui radius theme
The text was updated successfully, but these errors were encountered: