You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting a:bug report => please fork one of these codesandbox examples with a repro of your issue and include a link to it below
Issue description
When navigating by keyboard, it is very inconsisent how elements are activated: space or return key. Most work with both, some only with space, others only with return. This makes keyboard navigation confusing.
examples for return key only: go, +, -, rotate, items inside the share modal and inside the more information sidebar
examples for space key only: image controls forward and backward and also opening and closing the sidebars, switching between link and embed options in the share modal
On top of that, activating items by spacebar will also scroll the viewport to the bottom of the page. This will happen even for items that require the spacebar to activate (for example next-image-button in image controls will go to the next image but also scroll to the bottom of the page which means the image may become completely not visible).
navigate the page and try out activating controls with space and return key
particularly, navigate to the image viewer area and inside there to the next button
activate by space bar and observe the viewport moving to the bottom of the page
Expected behaviour
Consistent keys used for activating elements. Commonly, it's return for buttons and links and space for activating options in forms and the like. But having both for all elements would also work
The space key should never scroll the user anywhere but especially not if it is used to activate links in other parts of the viewer.
Possible fix
It would probably help a lot if the image controls were to be turned into semantic html rather than divs, because buttons come with built-in functionality like that.
UV version: [email protected]
I'm submitting a: bug report => please fork one of these codesandbox examples with a repro of your issue and include a link to it below
Issue description
When navigating by keyboard, it is very inconsisent how elements are activated: space or return key. Most work with both, some only with space, others only with return. This makes keyboard navigation confusing.
On top of that, activating items by spacebar will also scroll the viewport to the bottom of the page. This will happen even for items that require the spacebar to activate (for example next-image-button in image controls will go to the next image but also scroll to the bottom of the page which means the image may become completely not visible).
Steps to reproduce
Expected behaviour
Consistent keys used for activating elements. Commonly, it's return for buttons and links and space for activating options in forms and the like. But having both for all elements would also work
The space key should never scroll the user anywhere but especially not if it is used to activate links in other parts of the viewer.
Possible fix
It would probably help a lot if the image controls were to be turned into semantic html rather than divs, because buttons come with built-in functionality like that.
WCAG criterion
3.2.4 Consistent Identification (Level AA)
EDIT:
MDN suggests the following behaviour for links and buttons:
and to make sure that buttons behave like buttons and links like links to be consistent.
(source)
The text was updated successfully, but these errors were encountered: