-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Gallery block: make full image clickable when link and caption applied #40713
Conversation
…k works across full image
Size Change: +35 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
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.
Changes make sense to me 👍
I'm not sure about the accessibility concern though (should text always be selectable?), but I guess that's acceptable if we have aria-label or similar assistive label.
I also noticed there's a e2e test error on the gallery test, seems unrelated but might worth to check it out?
Image captions have a link option, this renders the link unusable with a mouse or other pointer. |
Doh! Good points - thanks for catching both of these @carolinan. Will take another look, but hard to see any option for making both the image link and the caption links clickable. |
Gotcha number 3, which is obviously why nobody tried |
What?
Make sure full gallery image is clickable when a link is applied and also a caption
Why?
Fixes: #14304 Currently if a gallery image has a caption the portion of the image with the caption is not clickable to follow the attached link
How?
Applies
pointer-events: none
to caption to allow click events to fall through to image anchorTesting Instructions
Screenshots or screencast
Before:
gallery-links-before.mp4
After:
gallery-link-after.mp4