-
Notifications
You must be signed in to change notification settings - Fork 912
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
RTL UI has some reversed features #3910
Comments
cc: @gravitystorm This issue should be moved to openstreetmap/openstreetmap-website. |
I think it can be resolved by adding styles for placeholder for RTL language, @gravitystorm could you please let me know if this is correct? I can work on this. |
CSS supports such behavior: I can try and tinker with the CSS in my browser and take a screenshot of it if it helps. EDITIt's not only the placeholder, look at the buttons on top (There's a small glitch and one of the lines is thicker, I'm sure it can be fixed): |
It can be fixed yes, my draft fix is to replace https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/stylesheets/common.scss#L29 with: [dir=rtl] {
/* no-r2 */ text-align: right;
::placeholder {
/* no-r2 */ text-align: right;
}
}
[dir=ltr] {
/* no-r2 */ text-align: left;
::placeholder {
/* no-r2 */ text-align: left;
}
} That works, though in my (english) browser the cursor winds up at the wrong end but I'm guessing that won't be the case if your browser is configured for an RTL language? |
For me, it still shows the placeholder text on the left, I think it is because |
I'm not sure if we can do it but we can use CSS vars but it may solve this issue, we simply need to avoid the "auto" configuration and set the style for this field instead. |
We need to be very careful here that we aren't creating more problems than we are fixing. For example, there is a proposal in a comment here to remove I find this topic is usually more complex than it first looks, and I don't want to see us rush into trying to solve one thing while accidentally making lots of other things worse. |
You're absolutely right, usually I'm using But we haven't discussed the buttons at all and these are also broken. |
URL
No response
How to reproduce the issue?
Simply login and switch to any RTL language, you'll see that the search box has overlapping words and that the buttons on the top right are clipped on the wrong side (due to hard coded left/right style arguments).
Screenshot(s) or anything else?
Which deployed environments do you see the issue in?
Released version at openstreetmap.org/edit
What version numbers does this issue effect?
No response
Which browsers are you seeing this problem on?
Firefox
The text was updated successfully, but these errors were encountered: