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

🐛 [BUG] - [FIX] Wrong ARIA ROLE in the product tab list #325

Closed
maofree opened this issue Nov 8, 2023 · 2 comments
Closed

🐛 [BUG] - [FIX] Wrong ARIA ROLE in the product tab list #325

maofree opened this issue Nov 8, 2023 · 2 comments
Labels
4.0.0 bug Something isn't working

Comments

@maofree
Copy link

maofree commented Nov 8, 2023

Description

Hi
I've found and fixed this error

PrestaShop/PrestaShop#34504

the role="tab" should be moved from the a tag to the li tag

like so in the product-tabs.tpl

  • bye

    Node.js version

    v16

    php version

    8.1

    OS and it's version

    linux

    Browsers

    Chrome

    Required module/theme

    theme

    Reproduction steps

    1. go to google page speed
    2. set the url of a product page with description and details
    3. scroll down to the accessibility section about this role errors

    Logs

    No response

  • @maofree maofree added the bug Something isn't working label Nov 8, 2023
    @Oksydan Oksydan added the 4.0.0 label Nov 10, 2023
    @Oksydan
    Copy link
    Owner

    Oksydan commented Nov 10, 2023

    Hi @maofree,

    thank you for creating an issue.
    I am not sure yet is it valid solution 🤔 according to bootstrap it should be:

    <ul class="nav nav-tabs" id="myTab" role="tablist">
      <li class="nav-item" role="presentation">
        <button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button" role="tab" aria-controls="home" aria-selected="true">Home</button>
      </li>
    </ul>

    I did small fixed on develop branch #328 - and product page now passes 100% lighthouse accessibility check.

    I am closing this one. Thank you for once again.

    @maofree
    Copy link
    Author

    maofree commented Nov 27, 2023

    Hi
    today I confirm that solution is good. I'm using it on the real website and I've tested it

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    4.0.0 bug Something isn't working
    Projects
    Development

    No branches or pull requests

    2 participants