OverlayDrawer: only set aria-modal to true when modal (#275)
Some checks failed
Deploy demo / deploy (push) Has been cancelled

This commit is contained in:
Yann Dirson 2024-10-07 08:26:08 +02:00 committed by GitHub
parent f9d0fdc2ab
commit 50bd30de1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,7 +113,7 @@ pub fn OverlayDrawer(
} }
node_ref=drawer_ref node_ref=drawer_ref
role="dialog" role="dialog"
aria-modal="true" aria-modal={if modal_type == DrawerModalType::Modal {"true"} else {"false"}}
> >
{children()} {children()}
</div> </div>