Topbar menu button is not activated by ENTER key

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
miedrl
Posts: 8
Joined: 22 Jul 2021, 13:21

10 Nov 2021, 11:29

Problem
To fulfil accessibility success criterion 2.1.1 "[a]ll functionality of the content is operable through a keyboard interface[...]". In Diamond Theme it is not possible to hide/show navigation by pressing ENTER on the topbar menu button, so this button is not fully accessible by keayboard.

Steps to reproduce the behavior:
  • Use tab key to focus navigation toggle button within topbar.
  • Try to trigger the button's action by pressing ENTER key.
  • See error > button's action is not triggered i.e. the navigation is not collapsed/expanded.
Expected behavior
For accessibility the navigation should be toggleable by pressing ENTER on its toggle button.

mcandu
Posts: 107
Joined: 20 Jan 2021, 16:31

01 Dec 2021, 10:16

Hi,

It's the default behaviour of html <a> element, if you don't add href attribute. You can add href for enter activity.

Best Regards.

Post Reply

Return to “Diamond - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests