-
Notifications
You must be signed in to change notification settings - Fork 165
terra-button Pressing the button with enter and space should look the same #3569
Comments
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed in seven days if no further activity occurs. Thank you for your contributions. |
We're still experiencing this issue. |
I took a look at a bunch of different approaches and native-browser handling for button states, which I will include at the bottom of this comment with an audit I did. The main take away however, is that there is not a perfectly universal and consistent standard for how buttons respond in respect with pressing return or spacebar and clicking, though there seems to be a common majority with a few outliers (e.g. Firefox on click). With that in mind, Terra buttons are currently following the native handling pattern of the common majority of browsers, and as such I am closing this issue.
W3 button examples that don't use button tag
Oracle Jet Cookbook for Buttons (Specifically the submenu opener button)
|
Thank you very mutch for the very detailed explanation. I'll foward this to my team. Thanks again :) |
Bug Report
Description
Pressing the button with enter and space does not look the same. Currently, pressing with space, the background changes, while pressing with enter it remains the same.
Steps to Reproduce
Additional Context / Screenshots
Expected Behavior
The button's pressed states should look the same. (or maybe, is this a default workout?)
Possible Solution
Environment
@ Mentions
The text was updated successfully, but these errors were encountered: