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
Remove useless code. Example. Tooltip Popup. It opens when the hint (?) element receives keyboard focus or the mouse hovers over it. It disappears on focus or mouse out. It would be better to use useEscClose only instead of useOverlay.
Remove useless option. Example. Full-screen Modal Popup. It would be better to use useOutsideClickClose only instead of useOverlay .
Motivation
Example. Tooltip Popup. It opens when the hint (?) element receives keyboard focus or the mouse hovers over it. It disappears on focus or mouse out. It would be better to use
useEscClose
only instead ofuseOverlay
.Example. Full-screen Modal Popup. It would be better to use
useOutsideClickClose
only instead ofuseOverlay
.Draft API
I see two ways:
useOverlay
.useOverlay
.A11y
Example of simple tooltip: w3c/aria-practices#127 (comment)
References
Arcanum. Market. Full-screen Modal Popup (internal link)
WAI ARIA. Pattern Tooltip Widget
WAI ARIA. Pattern Dialog
Integration
useOverlay
The text was updated successfully, but these errors were encountered: