Open dmitryRomankov opened 9 months ago
can you provide more info on this issue.
@Lala-kumar I've updated link to the sandbox, please check. Each issue described in summary above.
Also ran into both of these issues. pauseOnFocus
is not working at all, would be really nice if it did!
Additionally, my implementation has a link and a button in each slide. This breaks tab navigation entirely and the slides get super wonky. Was able to hackily fix this by setting tabindex of -1 on the link and button in every slide that does not have the classname of .slick-active
.
Hello guys, I'm using react slick on my current project and faced with focus and accessibility issues.
pauseOnFocus
prop doesn't work. Content continue sliding despite focus on slider.- Tab navigation works a bit weird. Instead of jumping from current slide's last active element to the right button, it goes to all elements inside slider and also focusing starts from the hidden element not from active.
- Markup inside Slider during Tab navigation looks shifted.
Link to sandbox where all issues are reproducible CodeSandBox
just to breif you i have added: 1).The problem arises when you try to focus on an element inside the slider, as it will pause the autoplay, but then immediately resume it because of the autoplay: true setting. This can cause unexpected behavior.
To fix this issue, you can try setting autoplay: isPlaying and then toggle the isPlaying state when the slider gains or loses focus.
2.)for second problem @DAnselC was right i have just worked on it updated the code 3)it was also corrected by solving problem 2(i.e by setting tabindex of -1 on the link and button in every slide)
Hello guys, I'm using react slick on my current project and faced with focus and accessibility issues.
pauseOnFocus
prop doesn't work. Content continue sliding despite focus on slider.Tab navigation works a bit weird. Instead of jumping from current slide's last active element to the right button, it goes to all elements inside slider and also focusing starts from the hidden element not from active.
Markup inside Slider during Tab navigation looks shifted.
Link to sandbox where all issues are reproducible CodeSandBox