diff --git a/lib/scss/components/image-cta/_image_cta.scss b/lib/scss/components/image-cta/_image_cta.scss index 2cf0a77..bfa9e2b 100644 --- a/lib/scss/components/image-cta/_image_cta.scss +++ b/lib/scss/components/image-cta/_image_cta.scss @@ -27,6 +27,7 @@ img { width: 100%; } + } .su-image-cta-paragraph__link { diff --git a/modules/soe_paragraph_image_cta/config/install/core.entity_view_display.paragraph.stanford_image_cta.default.yml b/modules/soe_paragraph_image_cta/config/install/core.entity_view_display.paragraph.stanford_image_cta.default.yml index d9da466..2bea717 100644 --- a/modules/soe_paragraph_image_cta/config/install/core.entity_view_display.paragraph.stanford_image_cta.default.yml +++ b/modules/soe_paragraph_image_cta/config/install/core.entity_view_display.paragraph.stanford_image_cta.default.yml @@ -39,6 +39,16 @@ content: view_mode: default image_style: '' link: false + image: + image_formatter: image_style + image_formatter_image_style: large + image_formatter_responsive_image_style: full_responsive + image_formatter_view_mode: default + video: + video_formatter: entity + video_formatter_view_mode: default + other: + view_mode: default third_party_settings: field_formatter_class: class: su-image-cta-paragraph__image diff --git a/modules/soe_paragraph_image_cta/templates/image-cta-paragraph.html.twig b/modules/soe_paragraph_image_cta/templates/image-cta-paragraph.html.twig index 4e8a2ba..bdb76f5 100644 --- a/modules/soe_paragraph_image_cta/templates/image-cta-paragraph.html.twig +++ b/modules/soe_paragraph_image_cta/templates/image-cta-paragraph.html.twig @@ -13,6 +13,7 @@ * */ #} + {%- set image_field_keys = image|keys -%} {%- set image_field_name = image_field_keys[0] -%} {%- set image_field_info = image[image_field_name] -%} @@ -23,6 +24,7 @@ {%- set link_field_items = link_field_info["#items"] -%} {%- set link_uri = link_field_items[0].uri -%} {%- set attributes = attributes.addClass(['su-image-cta-paragraph', modifier_class]) -%} +