Skip to content

Commit

Permalink
EWPP-3810: Update featured item template to have images clickable.
Browse files Browse the repository at this point in the history
  • Loading branch information
nagyad committed Dec 14, 2023
1 parent e083653 commit 75b480c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/patterns/featured_item/pattern-featured-item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
#}
{% if link.href is not empty %}
{% set _title = {
'label': title,
'path': link.href,
'type': "standalone",
'external': external_link,
'icon_path': ecl_icon_path
link {
label: title,
path: link.href,
type: "standalone",
external: external_link,
icon_path: ecl_icon_path
}
} %}
{% if variant == 'extended' %}
{% set _description %}
Expand Down
2 changes: 2 additions & 0 deletions tests/src/Kernel/fixtures/rendering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2382,6 +2382,7 @@
assertions:
count:
"img.ecl-card__image[src=\"http://via.placeholder.com/120x80\"]": 1
'article.ecl-card picture[data-ecl-picture-link]': 1
'h1.ecl-content-block__title a.ecl-link--standalone[href="https://example.com"]': 1
'a.ecl-button': 0
'article.ecl-card div.ecl-card__body ul.ecl-content-block__label-container': 1
Expand Down Expand Up @@ -2414,6 +2415,7 @@
assertions:
count:
"img.ecl-card__image[src=\"http://via.placeholder.com/120x80\"]": 1
'article.ecl-card picture[data-ecl-picture-link]': 1
'h1.ecl-content-block__title a.ecl-link--standalone[href="https://example.com"]': 1
'a.ecl-button': 0
'article.ecl-card div.ecl-card__body ul.ecl-content-block__label-container': 0
Expand Down

0 comments on commit 75b480c

Please sign in to comment.