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

Nick Doiron notifications at github.com
Thu Jan 13 00:09:53 UTC 2022


Improve right-to-left language search experience by adding HTML attribute `dir="auto"` to the input. Browsers will align left or right based on the input text.

No effect for left-to-right language input.

I am open to reordering the tag, or limiting this to just the primary search input.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/3420

-- Commit Summary --

  * add dir="auto" to search fields

-- File Changes --

    M app/views/layouts/_search.html.erb (6)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/3420.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3420.diff

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

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


More information about the rails-dev mailing list