minvws / nl-rdo-manon

Manon is een design framework
https://minvws.github.io/nl-rdo-manon/
Other
8 stars 4 forks source link

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

Open ricklambrechts opened 2 months ago

ricklambrechts commented 2 months ago

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 commented 2 months ago

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.