Skip to content
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

feature(themes): BCTHEME-76 Carousel bullets should be buttons (paging func update) #1727

Merged
merged 8 commits into from
Jul 27, 2020

Conversation

yurytut1993
Copy link
Contributor

What?

@BC-tymurbiedukhin @junedkazi @bc-alexsaiannyi

I added buttons in dots list of slick-carousel. As I understood from library code we can not use dots not in the

    tag. In screenshots I added the proof of it -
      tag is hardcoded in function where dots are creating. But as I understand from slick demos this is not a problem to create accessible dots. Now buttons in dots list can be used for sliding carousel. Buttons have no visual focus now - it will be implemented in one of the next tasks.

      Also I turned off accessibility of slick, because current version of the library has a bug with setting tabindex="-1" for all inactive bullets. So you can not use tabbing to jump from one bullet to other. Also by default slick adds role="tabs" for bullets container which is not correct. Because of this bugging behaviour it is better to turn off slick's accessibility and make it by our own. So I added function that controls tabindex of slides (0 for active slide and -1 for other). And dot buttons now have default semantic behaviour as we need

      Tickets / Documentation

      Ticket

      Screenshots (if appropriate)

      slick

        tag hardcoded for dots
        proof

        current dot button with wrong role and tabindex
        wrong-button

        new button that has correct aria role and tabindex by default
        semantic-button

@bigbot
Copy link

bigbot commented Jul 16, 2020

Autotagging @bigcommerce/storefront-team @davidchin

@yurytut1993 yurytut1993 changed the title feature(themes): Carousel bullets should be buttons (paging func update) feature(themes): BCTHEME-76 Carousel bullets should be buttons (paging func update) Jul 17, 2020
@BC-tymurbiedukhin BC-tymurbiedukhin merged commit c71f38d into bigcommerce:master Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants