Modal: Set default primary focus to something besides primary button
See original GitHub issueWhat package(s) are you using?
-
carbon-components
-
carbon-components-react
Detailed description
Describe in detail the issue you’re having.
Currently the default focused button on a modal is the primary button if it exists. In situations where users are interacting quickly with the UI, they might inadvertently trigger the primary button event which could include things like deleting.
Is this issue related to a specific component?
Modal that has passiveModal = false
What did you expect to happen? What happened instead? What would you like to see changed?
Set default primary focus to be either the secondary button or close button.
What browser are you working in?
Brave Version 1.12.114 Chromium: 84.0.4147.135 (Official Build) (64-bit)
What version of the Carbon Design System are you using?
carbon-components-react 7.21.0-rc.0
What offering/product do you work on? Any pressing ship or release dates we should be aware of?
Cloud IKS UI, no
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (7 by maintainers)
Top GitHub Comments
@asthas I’d take a look at https://github.com/carbon-design-system/carbon/blob/master/.github/CONTRIBUTING.md#start-contributing
@asthas sure thing!