-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve metadata positioning in doc list for right to left layouts #429
Conversation
9b93d7b
to
47b54f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An indenting issue and a few alternative suggestions.
|
||
.direction-rtl & { | ||
float: right; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path: '/government/publications/school-exclusion' | ||
metadata: | ||
public_updated_at: 2017-07-19 15:01:48 | ||
document_type: 'Statutory guidance' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to test a rtl example with some gem-c-document-list__item-context
elements included.
@@ -32,6 +32,10 @@ | |||
float: left; | |||
list-style: none; | |||
padding-right: $gutter-two-thirds; | |||
|
|||
.direction-rtl & { | |||
float: right; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of floating this right you could simply take the float left off the original element style and replace it with display inline-block - it's then influenced by the text direction but uses less CSS (of course, I haven't tested this cross browser but I think it should work).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good, I wonder why we used float to start with.. I'll have a go 👍
47b54f8
to
3bffb27
Compare
3bffb27
to
40b73bc
Compare
Float the metadata to the right when on a right to left layout. Otherwise it's difficult to see how the metadata is related to the document list item heading
40b73bc
to
7f0a84f
Compare
Move the metadata to the right when on a right to left layout. Otherwise it's difficult to see how the metadata is related to the document list item heading
Before
After
Component guide: https://govuk-publishing-compon-pr-429.herokuapp.com/component-guide/document_list