Replies: 7 comments 1 reply
-
Hi, sure, If you have reasonable changes - I'd gladly accept the PR. But note that PhotoSwipe is not a carousel, it's designed as an enhancement to a simple link to an image (and not as a standalone gallery). I'm not sure if adding |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks for getting back to me. I think that the functionality is identical to that of the carousel. Just focus on the feature from the Regarding the Here is exactly what we are looking to do:
Showing/Hiding Slides
This is where I some discussion is required. Currently there is no animation between slides, and the current approach is to have the elements off-screen. I assume this is done to implement animations for slide switching later? Here is what I would like to propose:
The idea is to keep the default method of changing "slides" as an accessible transition (just show hide, perhaps fade in/out is fine). If you want to provide animations in the future, no problem just can note that they might be problematic for screen readers. What do you think? |
Beta Was this translation helpful? Give feedback.
-
You cannot just
It may be quite difficult structurally. You'd need to either make And as I mentioned before, PhotoSwipe is designed as an enhancement. A simple list of links will be much easier to navigate for users with various assistive technologies on. The guideline that you linked assumes that a "carousel" is the only way to view the content. |
Beta Was this translation helpful? Give feedback.
-
Hey @dimsemenov, a bit of a late reply as I've been waiting feedback from our team. We would like to review and get back to you, though I am off next week. The following week I will get back to you so we can wrap this up and see if you are OK with us moving forward. Have a great weekend! |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay, but to finalize things so we can go ahead and move forward we would like to propose the following to start.
If you are OK with this, we would like to proceed and provide an MR for your review. Please let me know at your earliest convenience and will get that MR out soon. |
Beta Was this translation helpful? Give feedback.
-
Thanks for merging those changes. We have found an important issue that we want to tackle... but the truth is I think it might be best for you to handle this, or if you can guide me with some details I could do it as well (as you know the code structure/functionality best). The issue is simple: when in lightbox mode, and a user tabs between buttons with the keyboard -- tabbing should cycle between only the buttons in the modal window. Currently it tabs out to items outside of this. It appears the only way to do this is with Javascript by doing the following:
Or do you see another approach to solve this? |
Beta Was this translation helpful? Give feedback.
-
Not sure what do you mean, as the PhotoSwipe already does this, you can debug it at https://github.com/dimsemenov/PhotoSwipe/blob/master/src/js/keyboard.js#L130 |
Beta Was this translation helpful? Give feedback.
-
Hello @dimsemenov,
Our organization is interested in using this library as a base for our gallery components. We must meet accessibility standards, and are looking to follow the following guideline: https://www.w3.org/WAI/ARIA/apg/patterns/carousel/
I have already started making modification to do very simple things like fix tags, add attributes here:
https://github.com/in0ni/PhotoSwipe/tree/aria-pattern
But before continuing, I'd like to know how open are you to merging these changes and having a little discussion regarding other items to ensure accessibility. I also have checked out the dynamic caption plugin, and a very minor change should suffice to get it working according to this pattern.
Please let me know. We really would like to contribute, and do our best to ensure this library meets high accessibility guidelines without changing any functionality.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions