-
Notifications
You must be signed in to change notification settings - Fork 17
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
Move detailed guides to new layout #706
Conversation
ad1e77c
to
d8ae1c0
Compare
Nice to see the removal of that "Too much detail" box. |
guides.map { |g| { text: g["title"], path: g["base_path"] } } | ||
end | ||
|
||
|
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.
Whitespace/linting.
<%= render 'govuk_component/title', @content_item.title_and_context %> | ||
<%= render 'govuk_component/title', | ||
title: @content_item.title, | ||
average_title_length: "long" %> |
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.
No context is being passed here, so the title is missing the grey "Guidance" text above the title.
items: @content_item.metadata[:other] %> | ||
|
||
<%= render "components/contents-list-with-body", contents: @content_item.contents do %> | ||
<%# if @content_item.related_mainstream_content.any? %> |
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.
Commented block still needed?
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.
Should also delete the .related-mainstream-content styles
test/test_helper.rb
Outdated
else | ||
assert page.has_text?(value[:text]) | ||
assert page.has_text?(value[:text]), "Metadata value '#{value[:text]}' not found" |
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.
Nice ⭐️
d8ae1c0
to
87c6bd6
Compare
87c6bd6
to
3fb0d2d
Compare
3fb0d2d
to
4a892b1
Compare
4a892b1
to
6df3afc
Compare
9ff4409
to
d5ef44b
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.
Looks good
d5ef44b
to
8337d90
Compare
8337d90
to
3e0dc55
Compare
3e0dc55
to
97c5a5a
Compare
https://trello.com/c/uScvU8q2/189-add-detailedguide-to-universal-layout
Depends on alphagov/govuk-content-schemas#706
(PR number jinx!)
Example
https://government-frontend-pr-706.herokuapp.com/guidance/classifying-vehicles
Before
After
Component guide for this PR:
https://government-frontend-pr-706.herokuapp.com/component-guide