From 50bd30de1d68cf7fc5b8ddea96a65602496089aa Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Mon, 7 Oct 2024 08:26:08 +0200 Subject: [PATCH] OverlayDrawer: only set aria-modal to true when modal (#275) --- thaw/src/drawer/overlay_drawer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thaw/src/drawer/overlay_drawer.rs b/thaw/src/drawer/overlay_drawer.rs index 2ca6f38..85c1b5c 100644 --- a/thaw/src/drawer/overlay_drawer.rs +++ b/thaw/src/drawer/overlay_drawer.rs @@ -113,7 +113,7 @@ pub fn OverlayDrawer( } node_ref=drawer_ref role="dialog" - aria-modal="true" + aria-modal={if modal_type == DrawerModalType::Modal {"true"} else {"false"}} > {children()}