News for hackers. Stuff that matters.
Re:PSA: Add dir=“auto” to your inputs and textareas by drex04 on Wednesday August 23, 2023 @10:10AM (#37236189)
This is indeed an easy way to fix text rendering in your inputs and textareas. However, you'll also need to do the same for elements that render the submitted text. And once you encounter bidirectional text (e.g. an English product name within an Arabic paragraph), that opens up another whole can of worms...

Note also that there's currently a regression in Chrome that affects how RTL text is rendered in inputs with dir='auto'. They just shipped a fix though so it should be included in the next release.

Re:PSA: Add dir=“auto” to your inputs and textareas by Vanit on Wednesday August 23, 2023 @11:19AM (#37237411)
No obviously you just simply add this attribute to all elements in every project and tell everyone how much you care about accessibility because you use dir=auto (nevermind the rest of your website has zero mind for RTL) /s
Re:PSA: Add dir=“auto” to your inputs and textareas by mananaysiempre on Wednesday August 23, 2023 @12:46PM (#37238770)
Adapting your UI to RTL localization is a much more difficult proposition, but what well-placed dir="auto" can do is prevent an LTR-language UI from falling apart in the face of RTL user data (looking at you Gmail).
Re:PSA: Add dir=“auto” to your inputs and textareas by nickpeterson on Wednesday August 23, 2023 @01:22PM (#37239245)
Just support English and eventually it won’t be a problem. Also put all your dates in UTC. Any other low hanging fruit we can knock out?
Re:PSA: Add dir=“auto” to your inputs and textareas by masa331 on Wednesday August 23, 2023 @01:29PM (#37239356)
always export files in UTF-8
Re:PSA: Add dir=“auto” to your inputs and textareas by mpixel on Wednesday August 23, 2023 @02:09PM (#37239931)
only lowercase alphabetic ascii for any path or file name, excluding space.

i will die on this hill.

Re:PSA: Add dir=“auto” to your inputs and textareas by lpapez on Wednesday August 23, 2023 @02:57PM (#37240591)
We will stand together, brother.
Re:PSA: Add dir=“auto” to your inputs and textareas by phonon on Wednesday August 23, 2023 @02:54PM (#37240553)