Skip to content

Commit

Permalink
Merge branch 'master' into release-8.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Jun 11, 2021
2 parents d37fd77 + 10a45fb commit a5c7dae
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/scss/components/image-cta/_image_cta.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
img {
width: 100%;
}

}

.su-image-cta-paragraph__link {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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] -%}
Expand All @@ -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]) -%}

<div{{ attributes }}>
{% if image_field_items is not empty %}
{{ link(image, link_uri, {'tabindex': '-1', 'aria-hidden': 'true', 'role': 'presentation'}) }}
Expand Down

0 comments on commit a5c7dae

Please sign in to comment.