-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: 1.x
Are you sure you want to change the base?
Conversation
e371645
to
eeb59cf
Compare
There was a problem hiding this 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' |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Jira issue(s):