Skip to content

Commit

Permalink
EWPP-4367: Add the same margin bottom to lists in list item pattern a…
Browse files Browse the repository at this point in the history
…s the margin top.
  • Loading branch information
22Alexandra committed Jul 22, 2024
1 parent cc593d0 commit a388b3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions templates/patterns/list_item/pattern-list-item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
{% set _lists = _lists|merge([{
variant: lists_variant|default("horizontal"),
items: items,
extra_classes: 'ecl-u-mb-xl',
}]) %}
{% endfor %}
{% endif %}
Expand Down
6 changes: 3 additions & 3 deletions tests/src/Kernel/fixtures/rendering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@
'article.ecl-content-item picture.ecl-content-item__picture--large': 0
'article.ecl-content-item picture.ecl-content-item__picture--left': 0
'article.ecl-content-item picture.ecl-content-item__picture--right': 0
'div.ecl-content-block__list-container dl.ecl-description-list.ecl-description-list--horizontal.ecl-content-block__list': 1
'div.ecl-content-block__list-container dl.ecl-description-list.ecl-description-list--horizontal.ecl-content-block__list.ecl-u-mb-xl': 1
'div.ecl-content-block__list-container .ecl-description-list__term': 2
'div.ecl-content-block__list-container .ecl-description-list__definition': 2
'svg.ecl-icon.ecl-icon--s.ecl-link__icon': 0
Expand Down Expand Up @@ -1305,8 +1305,8 @@
'article.ecl-content-item div.ecl-content-item__content-block a.ecl-link[href="http://example.com"]': 1
'article.ecl-content-item time.ecl-date-block.ecl-date-block--ongoing.ecl-content-item__date': 1
'article.ecl-content-item time.ecl-date-block.ecl-date-block--ongoing.ecl-content-item__date abbr.ecl-date-block__month[title="July"]': 1
'div.ecl-content-block__list-container .ecl-description-list__term': 2
'div.ecl-content-block__list-container .ecl-description-list__definition': 2
'div.ecl-content-block__list-container dl.ecl-u-mb-xl .ecl-description-list__term': 2
'div.ecl-content-block__list-container dl.ecl-u-mb-xl .ecl-description-list__definition': 2
equals:
'article.ecl-content-item ul.ecl-content-block__primary-meta-container li.ecl-content-block__primary-meta-item:nth-child(1)': "News article"
'article.ecl-content-item ul.ecl-content-block__primary-meta-container li.ecl-content-block__primary-meta-item:nth-child(2)': "6 July 2015"
Expand Down

0 comments on commit a388b3e

Please sign in to comment.