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

[Tabs] Tab activates onMouseDown, breaking WCAG 2.5.2: Pointer-cancellation #1879

Open
KenAJoh opened this issue Jan 9, 2023 · 0 comments
Open

Comments

@KenAJoh
Copy link

KenAJoh commented Jan 9, 2023

Bug report

Current Behavior

Clicking on a tab currently activates onMouseDown

Expected behavior

Click on tab should activate onMouseUp (or onClick), allowing user to cancel activation if needed.

Additional context

onMouseDown={composeEventHandlers(props.onMouseDown, (event) => {

Wcag 2.5.2: Pointer Cancellation (Level A)

No Down-Event
The down-event of the pointer is not used to execute any part of the function;

Abort or Undo
Completion of the function is on the up-event, and a mechanism is available to abort the function before completion or to undo the function after completion;

Up Reversal
The up-event reverses any outcome of the preceding down-event;

Essential
Completing the function on the down-event is essential.

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

No branches or pull requests

1 participant