-
Notifications
You must be signed in to change notification settings - Fork 1
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
Promo block FE #126
Promo block FE #126
Conversation
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.
Thanks @KIRA009 this is looking good so far, but there are a few changes needed in order to be in line with the rest of the project.
I've put some comments on the back-end ticket as the markup was mainly visible on that PR.
Please can you complete the accessibility checks and tick the relevant boxes in the MR too?
tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/promo_block.html
Outdated
Show resolved
Hide resolved
24d854b
to
18b5266
Compare
80310cb
to
3d3686d
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.
Thanks @KIRA009 looking good now.
Oh - I have approved but just noticed that this is still not done:
|
@KIRA009 there is one other thing that you could add here that would be helpful. I've just merged a change with a custom image filter which allows desaturation - we're trying it out to help reduce the image file size across the site. Could you apply it to the images used here - just pass in |
0d65a34
to
9bcf870
Compare
3d3686d
to
e78dc2a
Compare
Updated with |
@@ -130,6 +130,22 @@ tags: | |||
partner_logo max-100x90 format-webp loading="lazy" class="partners__logo": | |||
raw: | | |||
<img src="https://source.unsplash.com/100x90?logo" width="100" height="90" alt="" class="partners__logo"> | |||
value.image fill-520x630 as desktop_image: |
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.
Fixed in 1d9642e
{% image value.image fill-520x630 as desktop_image %} | ||
<div class="promo-block__image promo-block__image--mobile" style="background-image: url('{{ mobile_image.url }}')"></div> | ||
<div class="promo-block__image promo-block__image--desktop" style="background-image: url('{{ desktop_image.url }}')"></div> | ||
{% image value.image fill-430x320 saturation-0.6 as mobile_image %} |
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.
Also, these need to use format-webp
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.
Added back in 1d9642e, must have gotten lost during rebase
e78dc2a
to
1d9642e
Compare
Link to Ticket
Description of Changes Made
How to Test
Screenshots
Desktop
Mobile
MR Checklist
Unit tests
Documentation
Browser testing
Data protection
Accessibility
Sustainability
Pattern library