-
Notifications
You must be signed in to change notification settings - Fork 375
Description
Follow up for core issue patternfly/patternfly#5319
A more consistent solution than was used to fix #8394
move the close button to the top of the drawer body rather than the end.
The modal component automatically places focus on the first interactable element in the modal when it is opened.
In the case of the Drawer, that should be the close button by default.
If the close button is not provided, then it should be the first interactable element in the drawer.
If there are no interactable elements, focus should be placed on the drawer body.
Like the modal, this should happen automatically for the drawer, unless overridden by the consumer.
When the drawer is closed, focus should be returned to the drawer toggle - or at least, the props needed for the consumer to implement this focus management should be exposed. All related examples/demos should be updated to use this behavior (including the wizard with drawer)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status