Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pagination item styling only applied to a and span elements #654

Open
ricklambrechts opened this issue Sep 5, 2024 · 1 comment
Open
Labels
discussion Pagination Component 'Pagination'

Comments

@ricklambrechts
Copy link
Member

Currently the pagination item styling is only applied to a and span elements.

It would be nice if the styling is applied to a button element to be able to use it in VueJS.
Else we need to use <a href="#"> elements with an click handler or a span but that is not wanted.

Related to https://github.com/minvws/nl-irealisatie-zmodules-qualification-register-web/pull/21#discussion_r1745330557

@ppvg
Copy link
Member

ppvg commented Sep 6, 2024

Summary of offline discussion: in this case the app in question can probably use <a>'s and client-side routing instead, with the added benefit of supporting browser history.

I can't think of a use case where one could use <button>s without introducing a tough accessibility challenge. I would like to suggest adding an explanation to the docs about the advisability of using links, whether traditional or with a client-side router.

@ppvg ppvg added the discussion label Sep 6, 2024
@HeleenSG HeleenSG added the Pagination Component 'Pagination' label Sep 19, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
discussion Pagination Component 'Pagination'
Projects
None yet
Development

No branches or pull requests

3 participants