Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Box] Can't use logical spacing properties #39168

Closed
2 tasks done
Semigradsky opened this issue Sep 26, 2023 · 0 comments · Fixed by #39169
Closed
2 tasks done

[Box] Can't use logical spacing properties #39168

Semigradsky opened this issue Sep 26, 2023 · 0 comments · Fixed by #39169
Labels
bug 🐛 Something doesn't work component: Box The React component. package: system Specific to @mui/system typescript

Comments

@Semigradsky
Copy link
Contributor

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

<Box marginInlineEnd={2}>

Current behavior 😯

Here I have TS error like Property 'marginInlineEnd' does not exist on type 'IntrinsicAttributes & BoxOwnProps<Theme> & ...

Expected behavior 🤔

No error

Context 🔦

By doc: https://mui.com/material-ui/react-box/#system-props

As a CSS utility component, the Box also supports all system properties.

I see logical spacing properties like marginInline or marginBlockEnd in list but can't use them: https://mui.com/system/properties/#properties-reference-table

Your environment 🌎

No response

@Semigradsky Semigradsky added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 26, 2023
@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work typescript package: system Specific to @mui/system component: Box The React component. and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: Box The React component. package: system Specific to @mui/system typescript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants