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-2018: Style highlighted Text with featured media paragraph. #1049

Merged
merged 7 commits into from
Mar 22, 2022

Conversation

22Alexandra
Copy link
Contributor

No description provided.

@22Alexandra 22Alexandra force-pushed the EWPP-2018 branch 4 times, most recently from 3b30a2d to f663080 Compare March 1, 2022 15:02
sergepavle
sergepavle previously approved these changes Mar 2, 2022
<div class="ecl-featured-item__title">{{ text_title }}</div>
{% endif %}
{% if text %}
<div class="ecl">{{ text }}</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div class="ecl">{{ text }}</div>
<div class="ecl-featured-item__description ecl">{{ text }}</div>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't use this class, check the FRONT ticket linked in our ticket.

Copy link
Contributor

Choose a reason for hiding this comment

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

If you are talking about https://citnet.tech.ec.europa.eu/CITnet/jira/browse/FRONT-3561, could you please check PR https://github.com/ec-europa/europa-component-library/pull/2351/files and playground https://ecl-preview-2351--europa-component-library.netlify.app/playground/ec/?path=/story/components-featured-item--extended.

Class ecl-featured-item__description is still used. Changes are just in the removing of font size.

Copy link
Contributor

@yenyasinn yenyasinn Mar 11, 2022

Choose a reason for hiding this comment

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

Also would be nice to set extra_classes: 'ecl-featured-item__link ecl-u-mt-m ecl-u-type-bold', for call to action button https://github.com/openeuropa/oe_theme/pull/1049/files#diff-1fb33e85cf11b49744aeae0c0e8b9daaa3ad245ec4ca2fb9bbd735a02b1d14f7R33 .
I know that it is out of scope but currently we have 2 classes for top margin and margin is incorrect.

See https://github.com/ec-europa/europa-component-library/blob/v3-dev/src/implementations/twig/components/featured-item/featured-item.html.twig
Screenshot 2022-03-11 at 13 41 08

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you are talking about https://citnet.tech.ec.europa.eu/CITnet/jira/browse/FRONT-3561, could you please check PR https://github.com/ec-europa/europa-component-library/pull/2351/files and playground https://ecl-preview-2351--europa-component-library.netlify.app/playground/ec/?path=/story/components-featured-item--extended.

Class ecl-featured-item__description is still used. Changes are just in the removing of font size.

I see it's fixed but not released, what should we do? Block the ticket on the ECL upgrade? ECL still needs to do improvements for this component so we can drop all our customisation and use their component.

The other comment is out of scope, indeed. The links are properly working and the scope of the ticket was to integrate the highlighted display which has been done.

Copy link
Contributor

@yenyasinn yenyasinn Mar 11, 2022

Choose a reason for hiding this comment

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

Do we need to create a ticket just for one class? Can't we simply remove it while we rebuild the whole template?

Copy link
Contributor

@yenyasinn yenyasinn Mar 11, 2022

Choose a reason for hiding this comment

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

We can't use ECL component now since it doesn't support image on the right and links instead of button.

yenyasinn
yenyasinn previously approved these changes Mar 14, 2022
sergepavle
sergepavle previously approved these changes Mar 14, 2022
@22Alexandra 22Alexandra merged commit 4018812 into 3.x Mar 22, 2022
@22Alexandra 22Alexandra deleted the EWPP-2018 branch March 22, 2022 09:52
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