-
Notifications
You must be signed in to change notification settings - Fork 19
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
Update document list with description #202
Conversation
f278063
to
b07131e
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.
Just spotted one necessary fix.
<%= item[:metadata][:document_type] %> | ||
</li> | ||
</ul> | ||
<p class="gem-c-document-list__item-description" ><%= item[:link][:description] %></p> |
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.
Since the description is optional we should check for it before writing paragraph tags.
b07131e
to
468d5f0
Compare
468d5f0
to
b7b38af
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.
👍 LGTM!
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.
👍
b7b38af
to
f7090f0
Compare
We want to make use of the document list component on topic pages. For mainstream services, we want to show a description of the document rather than metadata. In the future, we may also want to supply additional metadata for each document, such as organisation and collection the document belongs to. This PR refactors the component to stop it being limited to only updated date and document type
f7090f0
to
385ee92
Compare
We want to make use of the document list component on topic pages. For mainstream services, we want to show a description of the document rather than metadata.
In the future, we may also want to supply additional metadata for each document, such as organisation and collection the document belongs to. This PR refactors the component to stop it being limited to only updated date and document type
Component Guide Link: https://govuk-publishing-compon-pr-202.herokuapp.com/component-guide/document_list