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

Accessibility: change page navigation buttons from div to button element #6152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

koenvangeert
Copy link

The page navigation buttons were implemented as <div> elements, which are not accessible. This PR updates them to use <button> elements, improving accessibility and alignment with semantic HTML best practices.

@koenvangeert
Copy link
Author

Looks like the pipeline ran for longer than 60 minutes. Is there a way to retry?

@koenvangeert koenvangeert force-pushed the koenvg/page-navigation-accessibility branch 2 times, most recently from 83dfa2d to 0b01558 Compare December 4, 2024 11:33
@tsv2013
Copy link
Member

tsv2013 commented Dec 9, 2024

@koenvangeert Right now we're preparing to V2 release and actively re-working some of our components. That's why you can have conflists with our changes.

As for proposed changes:

  • i believe buttons should have the "button" type attribute value, by default all buttons will be "submit" and will react on every enter key pressed,
  • buttons hasve built-in styles that you will need to override to keep current UI (screenshot tests will show this issues if any)

Probably desired behavior can be achieved via the ARIA attributes. What do you think about it?

@koenvangeert koenvangeert force-pushed the koenvg/page-navigation-accessibility branch from 0b01558 to 9e4b3d8 Compare December 16, 2024 08:49
@koenvangeert koenvangeert force-pushed the koenvg/page-navigation-accessibility branch from 9e4b3d8 to 0b5d842 Compare December 16, 2024 09:01
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.

2 participants