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

[docs] Recommend setting HTML attribute instead of DOM property for RTL #42599

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

aarongarciah
Copy link
Member

Update docs on how to set dir="rtl". Recommend using an HTML attribute instead of using a DOM property. This seems more correct per https://jakearchibald.com/2024/attributes-vs-properties.

Suggested by @oliviertassinari in #42566 (comment).

@aarongarciah aarongarciah added docs Improvements or additions to the documentation package: material-ui Specific to @mui/material package: joy-ui Specific to @mui/joy labels Jun 10, 2024
@aarongarciah aarongarciah changed the title [docs] Recommend setting HTML attribute instead of DOM property [docs] Recommend setting HTML attribute instead of DOM property for RTL Jun 10, 2024
@mui-bot
Copy link

mui-bot commented Jun 10, 2024

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@DiegoAndai DiegoAndai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aarongarciah aarongarciah merged commit c1b78be into mui:next Jun 14, 2024
19 checks passed
joserodolfofreitas pushed a commit to joserodolfofreitas/material-ui that referenced this pull request Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation package: joy-ui Specific to @mui/joy package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants