vuejs / theme

VitePress theme for vuejs.org.
MIT License
245 stars 87 forks source link

feat(core): make VTFlyout accessible #37

Closed LinusBorg closed 2 years ago

LinusBorg commented 2 years ago

This PR makes the VTFlyout component more accessible.

I introduce a new composable useFocusContainer, which is used to run callbacks when Focus enters or leaves an element including all of its descendants. We can use this composable in other places like the Sidebar later as well.

New behavior: