-
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
Fix hmrc manuals heading #3464
Fix hmrc manuals heading #3464
Conversation
9a63bf7
to
2b11ac3
Compare
2b11ac3
to
aef9c9d
Compare
aef9c9d
to
6916dc3
Compare
6916dc3
to
7a242d2
Compare
7a242d2
to
4379865
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 to me!
@@ -13,7 +13,7 @@ | |||
<% @content_item.section_groups.each do |group| %> | |||
<% next unless group["child_sections"].present? %> | |||
<div class="subsection-collection"> | |||
<%= render "content_items/manuals/hmrc_sections", group: group %> | |||
<%= render "content_items/manuals/hmrc_sections", group: group, heading: 3 %> |
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.
non-blocking: heading
could be updated to heading_level
to help make it more descriptive of what it is used for, example of this approach in frontend
- https://github.com/alphagov/frontend/blob/e897dc6675d8c02118be82ff08d20b92d84d7437/app/views/landing_page/blocks/_heading.html.erb#L13
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.
Changes look good to me, nice work! 👍
Just a couple of non-blocking suggestions:
- could use
heading_level
instead ofheading
as mentioned in the comment - consider adding some screenshots showing the visual changes where h2/h3 elements are now used
4379865
to
6a35c5d
Compare
Example of HMRC manual section pages:
Before:

After:

Example of HMRC manual pages:
Before:

After:

Trello card: https://trello.com/c/siEO6N64/3097-hmrc-manuals-api-section-headings-issue-l#