From b2e7f131da61be43ffa98cdd7e5396170b7e24e3 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Fri, 25 Oct 2024 14:34:23 -0400 Subject: [PATCH] fix(overlays): hide the focus trap div from screen readers --- core/src/components/action-sheet/action-sheet.tsx | 4 ++-- core/src/components/alert/alert.tsx | 4 ++-- core/src/components/loading/loading.tsx | 4 ++-- core/src/components/picker-legacy/picker.tsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/src/components/action-sheet/action-sheet.tsx b/core/src/components/action-sheet/action-sheet.tsx index 2d003a5dfc3..1b4cfe31410 100644 --- a/core/src/components/action-sheet/action-sheet.tsx +++ b/core/src/components/action-sheet/action-sheet.tsx @@ -385,7 +385,7 @@ export class ActionSheet implements ComponentInterface, OverlayInterface { > -
+
(this.wrapperEl = el)}>
@@ -446,7 +446,7 @@ export class ActionSheet implements ComponentInterface, OverlayInterface {
-
+ ); } diff --git a/core/src/components/alert/alert.tsx b/core/src/components/alert/alert.tsx index ca7efa30fb9..06348e8c065 100644 --- a/core/src/components/alert/alert.tsx +++ b/core/src/components/alert/alert.tsx @@ -757,7 +757,7 @@ export class Alert implements ComponentInterface, OverlayInterface { > -
+
(this.wrapperEl = el)}>
@@ -779,7 +779,7 @@ export class Alert implements ComponentInterface, OverlayInterface { {this.renderAlertButtons()}
-
+ ); } diff --git a/core/src/components/loading/loading.tsx b/core/src/components/loading/loading.tsx index dac4cc5fafc..785f221c208 100644 --- a/core/src/components/loading/loading.tsx +++ b/core/src/components/loading/loading.tsx @@ -356,7 +356,7 @@ export class Loading implements ComponentInterface, OverlayInterface { > -
+
{spinner && ( @@ -368,7 +368,7 @@ export class Loading implements ComponentInterface, OverlayInterface { {message !== undefined && this.renderLoadingMessage(msgId)}
-
+ ); } diff --git a/core/src/components/picker-legacy/picker.tsx b/core/src/components/picker-legacy/picker.tsx index cb6f1ba2d9e..6b267823928 100644 --- a/core/src/components/picker-legacy/picker.tsx +++ b/core/src/components/picker-legacy/picker.tsx @@ -375,7 +375,7 @@ export class Picker implements ComponentInterface, OverlayInterface { > -
+ -
+ ); }