Project

General

Profile

Actions

Feature #39515

open

dir="auto" on all text fields

Added by mohammad assar 12 months ago. Updated 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Multi language text input require `dir="auto"` on text input, this simple change would significantly improve redmine for all Multilanguage usage

Actions #1

Updated by Go MAEDA 12 months ago

Do you think the following change work?

diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
index bcd6622a7..e8a82d989 100644
--- a/app/views/layouts/base.html.erb
+++ b/app/views/layouts/base.html.erb
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="<%= current_language %>">
+<html lang="<%= current_language %>" dir="auto">
 <head>
 <meta charset="utf-8" />
 <title><%= html_title %></title>
Actions #2

Updated by mohammad assar 12 months ago

Hi, thanks but no the attribute should be present on all <input /> tags like this:

<input dir="auto" type="text" name="title" />

<textarea dir="auto"></textarea>
Actions

Also available in: Atom PDF