Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EWPP-3875: Update News CT rendering tests. #1374

Merged
merged 6 commits into from
Jan 22, 2024

Conversation

22Alexandra
Copy link
Contributor

No description provided.

Base automatically changed from EWPP-3865-compile-sass to EPIC-EWPP-3676-ECL-v4 January 15, 2024 12:52
@22Alexandra 22Alexandra force-pushed the EWPP-3875 branch 3 times, most recently from fa987c1 to 7779dba Compare January 16, 2024 09:55
sergepavle
sergepavle previously approved these changes Jan 22, 2024
<h3 class="ecl-u-type-heading-3 ecl-u-mt-3xl">{{ 'Sources'|t }}</h3>
{% for item in items %}
{% set bubble_cache = item.content|render %}
<div class="ecl-u-border-bottom ecl-u-border-color-grey-15 ecl-u-pt-m ecl-u-pb-m">
<div class="ecl-u-border-bottom ecl-u-border-color-{{ _color }} ecl-u-pt-m ecl-u-pb-m">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we repeat this 5 times only in this PR, we could turn this into a Twig function that, depending on the library , prints out the right class, as ecl-u-border-color-{{ _color }}, like this:

Suggested change
<div class="ecl-u-border-bottom ecl-u-border-color-{{ _color }} ecl-u-pt-m ecl-u-pb-m">
<div class="ecl-u-border-bottom {{ ecl_class_border_color() }} ecl-u-pt-m ecl-u-pb-m">

@22Alexandra 22Alexandra merged commit f13e8c5 into EPIC-EWPP-3676-ECL-v4 Jan 22, 2024
1 check passed
@22Alexandra 22Alexandra deleted the EWPP-3875 branch January 22, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants