[openstreetmap/openstreetmap-website] RTL UI has some reversed features (Issue #3910)

Tom Hughes notifications at github.com
Thu Jan 26 10:01:37 UTC 2023


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:

```css
[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?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3910#issuecomment-1404778902
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3910/1404778902 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230126/aae75fb5/attachment.htm>


More information about the rails-dev mailing list