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

a-tags not accessible by tabbing, thus not accepted in accessibility tests #23

Open
roggaj opened this issue Aug 25, 2021 · 0 comments
Open

Comments

@roggaj
Copy link

roggaj commented Aug 25, 2021

add role="button" or href="#" and prevent default bebahivor to pass these accessibility tests.

<li v-for="page in pager.pages" :key="page" class="page-item page-number" :class="{'active': pager.currentPage === page}" :style="liStyles"> <a class="page-link" @click="setPage(page)" :style="aStyles">{{page}}</a> </li>

Need to be changed to

<li v-for="page in pager.pages" :key="page" class="page-item page-number" :class="{'active': pager.currentPage === page}" :style="liStyles">
            <a class="page-link" href="#" @click.prevent="setPage(page)" :style="aStyles">{{page}}</a>
        </li>
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

No branches or pull requests

1 participant