[openstreetmap/openstreetmap-website] Add dir="auto" to search to improve right-to-left language support (PR #3420)

Nick Doiron notifications at github.com
Wed Jan 19 04:29:14 UTC 2022


I'd cite the W3C that this is the best practice 
- on forms https://www.w3.org/International/questions/qa-html-dir#quickanswer
- on input element https://www.w3.org/International/questions/qa-html-dir#autoinput

I tested the current behavior when Arabic is your language on OSM.org ; it forces any text input to be right-to-left, which is also incorrect and fixed by this PR.

<img width="399" alt="Screen Shot 2022-01-18 at 11 35 04 AM" src="https://user-images.githubusercontent.com/643918/150063558-c92bf715-66a5-4aef-ac2d-9b6d606ebd2d.png">

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

Message ID: <openstreetmap/openstreetmap-website/pull/3420/c1016071078 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220118/f65d7e64/attachment.htm>


More information about the rails-dev mailing list