diff --git a/app/assets/stylesheets/views/_guide.scss b/app/assets/stylesheets/views/_guide.scss index 90e618ee3..ca7fe334d 100644 --- a/app/assets/stylesheets/views/_guide.scss +++ b/app/assets/stylesheets/views/_guide.scss @@ -11,4 +11,18 @@ margin-left: 1.5em; padding-left: 0.3em; } + + // FIXME: Remove when typography improvements made to + // govspeak component + // + // Distinguish between part titles (27px) and h2s + // within content of part by reducing font-size + // + // Override h2 sizes to match layout used by alphagov/frontend + // https://github.com/alphagov/static/blob/f44470edc4e4159ea37481985c641034741623ac/app/assets/stylesheets/helpers/_text.scss#L38 + .govuk-govspeak { + h2 { + @include bold-24; + } + } } diff --git a/app/views/content_items/_body_with_related_links.html.erb b/app/views/content_items/_body_with_related_links.html.erb index 75c3c6af3..dbbabab71 100644 --- a/app/views/content_items/_body_with_related_links.html.erb +++ b/app/views/content_items/_body_with_related_links.html.erb @@ -7,13 +7,15 @@ title: @content_item.title %> <%= render 'govuk_component/govspeak', content: @content_item.body, - direction: page_text_direction %> - <% #https://github.com/alphagov/government-frontend/pull/329#issuecomment-297681738 %> - <% if false && @content_item.last_updated %> -
- <%= t 'common.last_updated' %>: <%= @content_item.last_updated %> -
- <% end %> + direction: page_text_direction, + disable_youtube_expansions: true %> + + <% #https://github.com/alphagov/government-frontend/pull/329#issuecomment-297681738 %> + <% if false && @content_item.last_updated %> ++ <%= t 'common.last_updated' %>: <%= @content_item.last_updated %> +
+ <% end %> <%= render 'shared/related_items', content_item: @content_item %> diff --git a/app/views/content_items/guide.html+print.erb b/app/views/content_items/guide.html+print.erb index d661c19aa..6096953bd 100644 --- a/app/views/content_items/guide.html+print.erb +++ b/app/views/content_items/guide.html+print.erb @@ -16,7 +16,8 @@ <%= render 'govuk_component/govspeak', content: part['body'], - direction: page_text_direction %> + direction: page_text_direction, + disable_youtube_expansions: true %> <% end %> diff --git a/app/views/content_items/guide.html.erb b/app/views/content_items/guide.html.erb index 3f859aa39..be50ce956 100644 --- a/app/views/content_items/guide.html.erb +++ b/app/views/content_items/guide.html.erb @@ -21,7 +21,8 @@ <%= render 'govuk_component/govspeak', content: @content_item.current_part_body, - direction: page_text_direction %> + direction: page_text_direction, + disable_youtube_expansions: true %> <%= render 'govuk_component/previous_and_next_navigation', @content_item.previous_and_next_navigation %>