From f10c4c72e221a709f3a32a994d04a147196db8a7 Mon Sep 17 00:00:00 2001 From: goshkob Date: Tue, 18 Jul 2017 14:43:05 +0000 Subject: [PATCH] =?UTF-8?q?reset=20text-align=20to=20initial=20to=20let=20?= =?UTF-8?q?elements=20with=20dir=3D"auto"=20align=20texts=20to=20right?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/stylesheets/framework/typography.scss | 4 ++++ .../12892-reset-css-text-align-to-initial-for-rtl.md | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/unreleased/12892-reset-css-text-align-to-initial-for-rtl.md diff --git a/app/assets/stylesheets/framework/typography.scss b/app/assets/stylesheets/framework/typography.scss index 785b09e622f..77b7d901f9a 100644 --- a/app/assets/stylesheets/framework/typography.scss +++ b/app/assets/stylesheets/framework/typography.scss @@ -2,6 +2,10 @@ color: $gl-text-color; word-wrap: break-word; + [dir="auto"] { + text-align: initial; + } + a { color: $md-link-color; } diff --git a/changelogs/unreleased/12892-reset-css-text-align-to-initial-for-rtl.md b/changelogs/unreleased/12892-reset-css-text-align-to-initial-for-rtl.md new file mode 100644 index 00000000000..87e95240bba --- /dev/null +++ b/changelogs/unreleased/12892-reset-css-text-align-to-initial-for-rtl.md @@ -0,0 +1,4 @@ +--- +title: "reset text-align to initial to let elements with dir="auto" align texts to right in RTL languages ( default is left )" +merge_request: 12892 +author: goshhob