From 49eeab054ca1789185db666514069baadea0e4e8 Mon Sep 17 00:00:00 2001 From: Radek Czemerys Date: Mon, 2 Dec 2019 21:19:06 +0100 Subject: [PATCH 1/2] Set proper pointerEvents for focused sreen --- src/views/Header/HeaderContainer.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/Header/HeaderContainer.tsx b/src/views/Header/HeaderContainer.tsx index f3766f2df..e5fc49103 100644 --- a/src/views/Header/HeaderContainer.tsx +++ b/src/views/Header/HeaderContainer.tsx @@ -109,7 +109,9 @@ export default function HeaderContainer({ }) : undefined } - pointerEvents="box-none" + pointerEvents={ + isFocused ? 'box-none' : 'none' + } accessibilityElementsHidden={!isFocused} importantForAccessibility={ isFocused ? 'auto' : 'no-hide-descendants' From 8afe54e6f6453c9bb0015ab7f14d24a29609ea89 Mon Sep 17 00:00:00 2001 From: Radek Czemerys Date: Mon, 2 Dec 2019 21:28:11 +0100 Subject: [PATCH 2/2] Fix prettier error --- src/views/Header/HeaderContainer.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/Header/HeaderContainer.tsx b/src/views/Header/HeaderContainer.tsx index e5fc49103..90c7ea696 100644 --- a/src/views/Header/HeaderContainer.tsx +++ b/src/views/Header/HeaderContainer.tsx @@ -109,9 +109,7 @@ export default function HeaderContainer({ }) : undefined } - pointerEvents={ - isFocused ? 'box-none' : 'none' - } + pointerEvents={isFocused ? 'box-none' : 'none'} accessibilityElementsHidden={!isFocused} importantForAccessibility={ isFocused ? 'auto' : 'no-hide-descendants'