Skip to content

Commit b6d9a1a

Browse files
Merge pull request #2372 from NCCE/3002-strapi---issues-from-comms-meeting
Fixing Strapi Comms Issues
2 parents 73b893c + 4af463d commit b6d9a1a

File tree

13 files changed

+59
-18
lines changed

13 files changed

+59
-18
lines changed

app/components/cms/full_width_banner_component/full_width_banner_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<%= render @text_content.render %>
2424

2525
<% if @buttons %>
26-
<div class="cms-full-width-banner__content-buttons">
26+
<div class="cms-full-width-banner__content-buttons cms-button-container">
2727
<% @buttons.each do |button| %>
2828
<%= render button.render %>
2929
<% end %>

app/components/cms/full_width_banner_component/full_width_banner_component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,4 @@
103103
min-width: 300px;
104104
}
105105
}
106-
107106
}

app/components/cms/horizontal_card_component/horizontal_card_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<% end %>
66
<%= content_tag :div, class: wrapper_classes do %>
77
<div class="horizontal-card-component__content">
8-
<h1 class="govuk-heading-m"><%= @title %></h1>
8+
<h3 class="govuk-heading-m"><%= @title %></h3>
99
<%= render @body_blocks.render %>
1010
<%= render @icon_block.render if @icon_block&.icons&.any? %>
1111
</div>

app/components/cms/picture_card_component/picture_card_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<%= render Cms::ImageComponent.new(@image, show_caption: false, link: @link) %>
44
<% end %>
55
<div class="cms-picture-card__title">
6-
<h2 class="govuk-heading-m"><%= link_to_if @link, @title, @link, class: "cms-picture-card__link" %></h2>
6+
<h3 class="govuk-heading-m"><%= link_to_if @link, @title, @link, class: "cms-picture-card__link" %></h3>
77
</div>
88
<div class="cms-picture-card__text">
99
<%= render @body_text.render %>

app/components/cms/resource_card_component/resource_card_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<% if @title %>
33
<div class="cms-resource-card__top-content">
44
<div class="cms-resource-card__top-content-title">
5-
<h2 class="govuk-heading-m"><%= @title %></h1>
5+
<h3 class="govuk-heading-m"><%= @title %></h3>
66
</div>
77
<% if @icon %>
88
<div class="cms-resource-card__top-content-image">

app/components/cms/rich_text_block_component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Heading < Cms::RichTextBlockComponent
7373
def heading_class
7474
if @blocks[:level] == 1
7575
"govuk-heading-l"
76-
elsif @blocks[:level] == 2
76+
elsif @blocks[:level] == 2 || @blocks[:level] == 3
7777
"govuk-heading-m"
7878
else
7979
"govuk-heading-s"

app/components/cms/testimonial_row_component/testimonial_row_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%= render GovGridRowComponent.new(additional_classes: wrapper_classes) do |row| %>
22
<%= row.with_column("full") do %>
33
<% if @title %>
4-
<h1 class="govuk-heading-m"><%= @title %></h1>
4+
<h2 class="govuk-heading-m"><%= @title %></h2>
55
<% end %>
66

77
<div class="cms-testimonials-row">

app/components/cms/two_column_video_section_component/two_column_video_section_component.html.erb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
<div class="tc-row-half">
55
<%= render @left_column_content.render %>
66
<% if @left_column_button %>
7-
<%= render @left_column_button.render %>
7+
<div class="cms-button-container">
8+
<%= render @left_column_button.render %>
9+
</div>
810
<% end %>
911
</div>
10-
<div class="tc-row-half">
12+
<div class="tc-row-half cms-two-column-video-section-component__video-wrapper">
1113
<%= render @video.render %>
1214
<% if @right_column_content %>
1315
<div class="cms-two-column-video-section-component__right-text">
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
.cms-two-column-video-section-component {
2-
video {
3-
width: 100%;
4-
height: auto;
5-
display: block;
6-
}
72

83
&__wrapper {
94
&--padded {
@@ -14,4 +9,16 @@
149
&__right-text {
1510
margin-top: 20px;
1611
}
12+
13+
&__video-wrapper {
14+
display: flex;
15+
flex-direction: column;
16+
justify-content: center;
17+
18+
video {
19+
width: 100%;
20+
height: auto;
21+
display: block;
22+
}
23+
}
1724
}

app/webpacker/stylesheets/components/cms/_shared.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
.cms-button-container {
8686
display: flex;
8787
flex-direction: column;
88-
margin-top: 10px;
88+
margin-top: 1rem;
8989
}
9090

9191
.cms {

0 commit comments

Comments
 (0)