From bd15af6e233f59a134f03c6100c5c85f3f91d996 Mon Sep 17 00:00:00 2001 From: Alex Mantsurov Date: Tue, 20 Aug 2024 15:38:47 +0300 Subject: [PATCH 1/2] fix: fixed highlight for buttons on android --- packages/button/ButtonStyles.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/button/ButtonStyles.tsx b/packages/button/ButtonStyles.tsx index 0afa8898..35d7fd4c 100644 --- a/packages/button/ButtonStyles.tsx +++ b/packages/button/ButtonStyles.tsx @@ -184,6 +184,7 @@ export const ButtonStyle = styled.button` font-family: inherit; font-weight: 700; width: ${({ $fullwidth }) => ($fullwidth ? ' 100%' : 'auto')}; + -webkit-tap-highlight-color: transparent; ::before { content: ''; From 67c359451c8423e60bb0b1e7671796f455a7e0d6 Mon Sep 17 00:00:00 2001 From: Alex Mantsurov Date: Tue, 20 Aug 2024 15:46:01 +0300 Subject: [PATCH 2/2] fix: fixed tests --- packages/button/__snapshots__/Button.test.tsx.snap | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/button/__snapshots__/Button.test.tsx.snap b/packages/button/__snapshots__/Button.test.tsx.snap index 5fc1ef7d..7d4451eb 100644 --- a/packages/button/__snapshots__/Button.test.tsx.snap +++ b/packages/button/__snapshots__/Button.test.tsx.snap @@ -13,6 +13,7 @@ exports[`renders correctly 1`] = ` font-family: inherit; font-weight: 700; width: auto; + -webkit-tap-highlight-color: transparent; line-height: 1em; font-size: 14px; border-radius: 10px;