-
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
YALB-1319 - Bug: Image Gallery - caption cut off | YALB-1473 - Bug: Image Gallery issues with pagination on different browsers and devices #279
Conversation
✅ Deploy Preview for dev-component-library-twig ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ibrary-twig into yalb-1319-1473
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.
Very nice work! All is working for me. The expand/collapse works great. Offhand I can't think of a better way to do it and it works on multiple devices I've tried at different screen sizes. If I think of one or see something elsewhere online I'll let you know.
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.
Desktop and different browsers all worked well for me too. I set a slide to not have enough to engage the "..." and arrow expander on desktop:
"Cupcake ipsum dolor sit amet. Oat cake cupcake muffin dragée tart pie sweet roll."
However, on a very small screen (iPhone SE 375px wide) it cuts off the text a little bit:
Landscape on iPhone will cut the caption out completely:
And when there is enough text for an arrow to appear, iPhone SE does show the arrow and it is tappable, but it's too low on the screen.
Small screens are tricky!
@codechefmarc This should be ready for another look, please. I reduced the font-size of both the |
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 for the fixes, looks great on Storybook, so I'm going to approve. However, I can't get this to show up in Drupal. (It did for my previous tests...) In Drupal, it's still showing the text and you can scroll the text but the arrow and show/hide doesn't seem to show up. Not sure if that is a blocker or if we need to do some additional wiring?
@codechefmarc In my experience, testing this in Drupal, none of the existing captions were long enough to trigger the expand/collapse functionality. |
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.
Very nice! Animations respected reduced motion, good use of semantic HTML-button and the states are announced via screen reader.
- My only suggestion is to use aria-expanded on the button to announce state change, just swap out the
<span>
that updates with ARIA on the button that updates true/false. This will be more reliable for assistive tech.
@kara-franco Thank you! I pushed up a fix to add Please take another look. |
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.
Very nice!! A11y approved.
🎉 This PR is included in version 1.34.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
YALB-1319 - Bug: Image Gallery - caption cut off | YALB-1473 - Bug: Image Gallery issues with pagination on different browsers and devices
Description of work
80
charactersTesting Link(s)
Functional Review Steps
current slide number / total slide number
(2/8)yalb-modal-gallery-toggle.mp4
yalb-modal-gallery-toggle-mobile.mp4
Design Review
Accessibility Review
Notes