Skip to content

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

Merged
aarongarciah merged 2 commits intomui:nextfrom
aarongarciah:html-dir
Jun 14, 2024
Merged

[docs] Recommend setting HTML attribute instead of DOM property for RTL#42599
aarongarciah merged 2 commits intomui:nextfrom
aarongarciah:html-dir

Conversation

@aarongarciah
Copy link
Copy Markdown
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 package: joy-ui Specific to Joy UI. labels Jun 10, 2024
@aarongarciah aarongarciah requested a review from DiegoAndai June 10, 2024 09:32
@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
Copy Markdown

mui-bot commented Jun 10, 2024

Copy link
Copy Markdown
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.

Some more reading:

SCR-20240611-bfax

It's a lot more verbose though, so happy either way (with or without this change).

Copy link
Copy Markdown
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
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 Joy UI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants