Skip to content

Commit 381236e

Browse files
committed
mobile fixes
1 parent 4504fe0 commit 381236e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/components/cms/full_width_image_banner_component/full_width_image_banner_component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
aspect-ratio: 7/2;
55
min-height: 100px;
66

7+
@include govuk-media-query($until: tablet) {
8+
aspect-ratio: 3/2;
9+
}
10+
711
&__overlay {
812
width: 30%;
913
min-width: 235px;

app/services/cms/providers/strapi/factories/blocks_factory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def self.to_full_width_image_banner(strapi_data)
7070
DynamicComponents::Blocks::FullWidthImageBanner.new(
7171
background_image: to_image(strapi_data, :backgroundImage, default_size: :original),
7272
overlay_title: strapi_data[:overlayTitle],
73-
overlay_text: to_content_block(strapi_data[:overlayText]),
73+
overlay_text: to_content_block(strapi_data[:overlayText], paragraph_class: "govuk-body-s"),
7474
overlay_icon: to_image(strapi_data, :overlayIcon, default_size: :small),
7575
overlay_side: strapi_data[:overlaySide]
7676
)

0 commit comments

Comments
 (0)