Add light box gallery#2444
Conversation
Coverage Report for ./packages/components/
File Coverage
|
||||||||||||||||||||||||||||||||||||||
🚀 Preview DeploymentPreview environments are ready:
Images:
|
Co-authored-by: Lisa18289 <84317589+Lisa18289@users.noreply.github.com>
…light-box-gallery
🚀 Preview DeploymentPreview environments are ready:
Images:
|
# Conflicts: # packages/components/src/components/LightBox/LightBox.tsx # packages/components/src/components/propTypes/index.ts
🚀 Preview DeploymentPreview environments are ready:
Images:
|
Co-authored-by: Lisa18289 <84317589+Lisa18289@users.noreply.github.com>
🚀 Preview DeploymentPreview environments are ready:
Images:
|
Jan-Eimertenbrink
left a comment
There was a problem hiding this comment.
This is already feeling really good and close to what I had in mind. I have a few suggestions that could improve the experience further:
-
Keyboard navigation in the gallery
Once inside the gallery, I would expect to be able to navigate between images using the arrow keys. That would make keyboard interaction much smoother and aligns with common patterns, for example in the Google Play Store. -
Spacing from the screen edges
I think the Buttons could have a bit more space from the border, especially on larger screens where they currently feel slightly too close to the borders. Maybe something around 32px could work, but we can review that together. I’d still keep them visually anchored toward the edges, similar to how it’s handled in the Google Play Store. -
Gallery looping behavior (open for discussion)
I’m a bit undecided here and would love your thoughts. Should the gallery loop from the last image back to the first?
There are pros and cons:
- Looping makes it easy to continuously browse in one direction and quickly jump from the first to the last image.
- On the other hand, having a clear start and end (no looping) gives users a stronger sense of completion when they reach the last image.
I can see good arguments for both approaches, so I’d be interested in your perspective.
🚀 Preview DeploymentPreview environments are ready:
Images:
|
Co-authored-by: Lisa18289 <84317589+Lisa18289@users.noreply.github.com>
🚀 Preview DeploymentPreview environments are ready:
Images:
|
Co-authored-by: Lisa18289 <84317589+Lisa18289@users.noreply.github.com>
🚀 Preview DeploymentPreview environments are ready:
Images:
|
No description provided.