Skip to content

(web-components) call click in button keydownHandler#31428

Merged
radium-v merged 1 commit intomicrosoft:masterfrom
radium-v:users/radium-v/fix-button-click
May 20, 2024
Merged

(web-components) call click in button keydownHandler#31428
radium-v merged 1 commit intomicrosoft:masterfrom
radium-v:users/radium-v/fix-button-click

Conversation

@radium-v
Copy link
Contributor

Previous Behavior

The keydownHandler function calls this.press(), which does the action but doesn't do it in the same way as described in the spec. Pressing space or enter on a button should call the click function.

New Behavior

The keydownHandler calls this.click() when the space or enter key is pressed.

@radium-v radium-v requested a review from a team as a code owner May 20, 2024 21:11
Copy link
Contributor

@davatron5000 davatron5000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified on my machine

@radium-v radium-v enabled auto-merge (squash) May 20, 2024 21:14
@fabricteam
Copy link
Collaborator

📊 Bundle size report

✅ No changes found

@radium-v radium-v merged commit ff3ca5a into microsoft:master May 20, 2024
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@radium-v radium-v deleted the users/radium-v/fix-button-click branch May 20, 2024 21:22
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request May 21, 2024
* master:
  applying package updates
  applying package updates
  docs: Surfacing `Dropdown` and `Combobox` prop comments to docsite (microsoft#31430)
  (web-components) call click in button keydownHandler (microsoft#31428)
  Modify data and color codes for examples to fix accessibility issues (microsoft#31425)
  chore(deps): bump semver from 5.7.1 to 6.3.1 (microsoft#31420)
  applying package updates
  Improve gauge chart screen reader accessibility (microsoft#26682)
  applying package updates
  applying package updates
miroslavstastny pushed a commit to miroslavstastny/fluentui that referenced this pull request Jun 14, 2024
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.

5 participants