You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rtl mode of the website, the right and left modifications requires some adjustments in code most of the time.
It's good practice to expose start and end instead and toggle the values based on the document mode, similar to the css properties.
.element {
position: absolute;
inset-block-start: 0; /* evaluates to top */
inset-block-end: 0; /* evaluates to bottom */
inset-inline-start: 0; /* evaluates to left in ltr and right in rtl */
inset-inline-end: 0; /* evaluates to right in ltr and left in rtl */
}
In
rtl
mode of the website, theright
andleft
modifications requires some adjustments in code most of the time.It's good practice to expose
start
andend
instead and toggle the values based on the document mode, similar to the css properties.See https://css-tricks.com/building-multi-directional-layouts/
The text was updated successfully, but these errors were encountered: