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

OEL-1900: Upgrade BCL to 0.25. #258

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from
Open

OEL-1900: Upgrade BCL to 0.25. #258

wants to merge 1 commit into from

Conversation

drishu
Copy link
Contributor

@drishu drishu commented Aug 1, 2022

Jira issue(s):

@drishu drishu force-pushed the OEL-1900 branch 3 times, most recently from e371645 to eeb59cf Compare August 12, 2022 13:39
Copy link
Contributor

@brummbar brummbar left a comment

Choose a reason for hiding this comment

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

To discuss with UX/FE on some points.

'dl > dt:nth-of-type(1) > svg': '/themes/custom/oe_bootstrap_theme/assets/icons/bcl-default-icons.svg#geo-alt-fill'
'dl > dt:nth-of-type(3) > svg': '/themes/custom/oe_bootstrap_theme/assets/icons/bcl-default-icons.svg#calendar-event'
'dl > dt:nth-of-type(5) > svg': '/themes/custom/oe_bootstrap_theme/assets/icons/bcl-default-icons.svg#bicycle'
'dl:nth-of-type(1) > dt svg': '/themes/custom/oe_bootstrap_theme/assets/icons/bcl-default-icons.svg#geo-alt-fill'
Copy link
Contributor

Choose a reason for hiding this comment

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

The fact that now we have multiple dl elements instead of one for me is a regression/backwards compatibility break and we need to address this.

@@ -87,7 +87,7 @@ content_banner_gray_background_with_image_without_badges_without_meta_without_li
'div.bcl-content-banner': 1
'div.bcl-content-banner.bg-lighter': 1
'img': 1
'article.card > div.row > div.col-md-4.col-lg-3 > img[src="https://placeimg.com/1200/600/tech"]': 1
'article.card > div.row > div.bcl-card-start-col > img[src="https://placeimg.com/1200/600/tech"]': 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change in size expected?
Before
image

and now
image

It doesn't match the UX files I found.

Copy link

Choose a reason for hiding this comment

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

I had a look in figma, and indeed on a content page the image is supposed to be large.
I don't know on which content type/page this is, but that's probably a mistake
image

Choose a reason for hiding this comment

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

This is the consequence of the card refactoring, a parameter is now in place to determine the image size, you can see here in the content banner demo how you can set the image size:
https://oelibrary.netlify.app/default/?path=/story/compositions-content-banner--default&args=image_size:xl

Copy link
Contributor

@tibi2303 tibi2303 Aug 23, 2022

Choose a reason for hiding this comment

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

In the second image from francesco is the default size (160x160) which is displayed on the listings pages - https://oelibrary.netlify.app/default/?path=/story/features-person--listing
and the large size (255x255) is displayed on the details pages (content pages)
https://oelibrary.netlify.app/default/?path=/story/features-person--details

As davide mentioned, we introduced 4 sizes which can be manipulated with the image_size param inside content_banner :

  • 120*120 - sm
  • 160*160 - md (default)
  • 255*255 - lg
  • 350*350 - xl - no use cases for it now so it does not have a demo

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.

5 participants