summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoshkob <goshkob@gmail.com>2017-07-18 14:43:05 +0000
committerClement Ho <clemmakesapps@gmail.com>2017-07-18 14:43:05 +0000
commitf10c4c72e221a709f3a32a994d04a147196db8a7 (patch)
treeb12bd4136105d2990de8334a5e34a1086b44bc2d
parent11f9ac0a48b62cef25eedede4c1819964f08d5ce (diff)
downloadgitlab-ce-f10c4c72e221a709f3a32a994d04a147196db8a7.tar.gz
reset text-align to initial to let elements with dir="auto" align texts to right…
-rw-r--r--app/assets/stylesheets/framework/typography.scss4
-rw-r--r--changelogs/unreleased/12892-reset-css-text-align-to-initial-for-rtl.md4
2 files changed, 8 insertions, 0 deletions
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