Skip to content

Commit

Permalink
Handle RTL better in publisher metadata component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanita Barrett authored and barrucadu committed Sep 3, 2018
1 parent 46589ac commit 9aacb19
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/assets/stylesheets/components/_publisher-metadata.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,18 @@
.app-c-publisher-metadata__term {
float: left;
padding-right: $gutter-one-third / 2;

.direction-rtl & {
float: none;
display: inline-block;
padding-right: 0;
padding-left: 5px;
}
}

.app-c-publisher-metadata__definition {
.direction-rtl & {
float: none;
display: inline-block;
}
}
9 changes: 9 additions & 0 deletions app/views/components/docs/publisher-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,12 @@ examples:
data:
other:
Applies to: "England, Scotland, and Wales (see detailed guidance for <a href=\"http://www.dardni.gov.uk/news-dard-pa022-a-13-new-procedure-for\" rel=\"external\">Northern Ireland</a>)"
right_to_left:
data:
published: 31 July 2017
last_updated: 20 September 2017
other:
from:
- <a href='/government/organisations/ministry-of-defence'>Ministry of Defence</a>
context:
right_to_left: true

0 comments on commit 9aacb19

Please sign in to comment.