You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
We probably do still want to focus something within the dismissible side sheet when it opens...but we'd probably have to just look for the first focusable thing within it. I forget if we've already implemented or used something like that somewhere else in our repo? Otherwise we could probably use tabbable (focus-trap's dependency) for it, but might want to delegate that to a util function as well.
Dialog briefly had a util function for this in #3413, but it was removed because focus-trap already provides the same functionality (via its dependency on tabbable):
From #3924 (comment):
material-components-web/packages/mdc-side-sheet/dismissible/foundation.js
Line 175 in 2b104a6
Dialog briefly had a
util
function for this in #3413, but it was removed becausefocus-trap
already provides the same functionality (via its dependency ontabbable
):material-components-web/packages/mdc-dialog/util.js
Lines 46 to 104 in a62f743
Tasks:
focusActiveNavigationItem()
to something more generic (e.g.,focusContent()
)util
function to find the first focusable element (probably usingtabbable
)The text was updated successfully, but these errors were encountered: