Replace modal's focusOnMount with a optional string providing more options. #7698
Labels
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Feature] UI Components
Impacts or related to the UI component system
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
Needs Dev
Ready for, and needs developer efforts
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
The Modal component (#6261) has a prop that can be passed to it (
focusOnMount
) just like the Popover. In the popover this can optionally be a string providing more option where to focus when the component mounts.As discussed with @aduth this feature should be included in a future iteration.
Describe the solution you'd like
Allow the
focusOnMount
prop (https://github.com/WordPress/gutenberg/tree/master/packages/components/src/modal#focusonmount) to be either a boolean or a string, following the same pettern and options as the Popover.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
The text was updated successfully, but these errors were encountered: