[system][Box, Grid, Typography] `textTransform` prop does not work directly
See original GitHub issueDuplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
The textTransform
prop is passed through to the DOM node.
Expected behavior 🤔
The docs for <Box/>
says:
The Box component packages all the style functions that are exposed in @mui/system.
Similarly, the docs for <Grid/>
and <Typography/>
say:
As a CSS utility, the Grid component also supports all system properties. You can use them as props directly on the component.
Over on the sx prop page, it says:
The property is a superset of CSS that packages all the style functions that are exposed in @mui/system. You can specify any valid CSS using this prop.
I interpret that as meaning that any CSS prop that works via the sx
prop will also work directly on Box, Grid and Typography.
However this doesn’t appear to be the case for textTransform
- it works via sx
, but doesn’t directly on Box/Grid/Typography.
Steps to reproduce 🕹
https://codesandbox.io/s/cocky-mayer-intql?file=/src/Demo.tsx:371-372
Context 🔦
No response
Your environment 🌎
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top GitHub Comments
@patspam there is a list of which CSS properties are available under the Docs’ System section. We do not support all CSS properties as first class props.
@mnajdova, you would likely know best.