-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
This should be fixed in the tailwindcss-rtl library once 20lives/tailwindcss-rtl#44 is closed I think? In any case, using the built in Tailwind RTL/LTR utilities (even though they're experimental and liable to change) seems like a good way to fix this for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested locally in both RTL and LTR modes and it works great. Will pair very nicely with #773.
Yep, that's exactly it, nice find! Glad to have it referenced here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why wouldn't end-0
work?!
@dhruvkb it's this issue: 20lives/tailwindcss-rtl#44 The basics are, given this html:
Our :not([dir="rtl"]) .end-0 {
right: 0;
}
[dir="rtl"] .end-0 {
left: 0;
} |
* main: (73 commits) Make audio/image pages without ids show a 404 (#768) Fix logo button paddings and simplify implementation (#767) Fix global audio rtl close placement (#780) Check for `null` localStorage explicitly (#763) Truncate global audio text to two lines (#773) New image details page (#682) Switch to path-based i18n routing (#701) Enable source maps in production (#755) Remove Jamendo and Wikimedia Commons from audio meta sources (#747) Use jed1x json format to correctly handle pluralization (#753) Fix logo color on error page layout (#752) Add homepage content switcher for mobile screens (#716) Add inline-start border to filters on desktop (#748) Fix header items not fitting in (#718) Expose `close` to popover content via slot props (#736) Truncate row layout audio titles (#735) Stop blocking on analytics requests (#715) Style links globally (#727) Refactor the usage of i18n result count computation (#707) Use `VPopover` for the content report form (#719) ...
Fixes
Fixes #779 by @sarayourfriend
Description
Switches from using
end-0
, which doesn't seem to work correctly, to explicitly usingrtl:left-0 ltr:right-0
.I think the
end-0
css logic looks for any parent element that doesn't have adir
applied, so both of these styles are applied at once and specificity wins:Testing Instructions
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin