Skip to content

Commit

Permalink
Add rtl langauge support
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yoong committed Feb 28, 2022
1 parent 63a95ef commit 71a92fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
@import 'govuk_publishing_components/components/print/step-by-step-nav';
@import 'govuk_publishing_components/components/print/step-by-step-nav-header';
@import 'govuk_publishing_components/components/print/title';

@import 'print/html-publication';
@import 'print/language_support';
9 changes: 9 additions & 0 deletions app/assets/stylesheets/print/_language_support.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@media print {
// Targeting (right to left) rtl languages
main[lang="ar"], // Arabic
main[lang="he"], // Hebrew
main[lang="ur"] { // Urdu
direction: rtl;
text-align: start;
}
}

0 comments on commit 71a92fd

Please sign in to comment.