From 840f24dbe56aa42641b43e0283e2a050adf185f8 Mon Sep 17 00:00:00 2001 From: Dinis Vieira Date: Sat, 4 Nov 2023 18:08:44 +0000 Subject: [PATCH] PM-3349 Fix for TabGestureRecognizer not working inside the StackLayout area of IconLabelButton --- src/Core/Controls/IconLabelButton/IconLabelButton.xaml | 6 +++--- src/Core/Controls/IconLabelButton/IconLabelButton.xaml.cs | 7 +++++++ src/Core/Pages/Accounts/LoginPage.xaml | 8 +++----- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/Core/Controls/IconLabelButton/IconLabelButton.xaml b/src/Core/Controls/IconLabelButton/IconLabelButton.xaml index 18d89eb64..507f3547c 100644 --- a/src/Core/Controls/IconLabelButton/IconLabelButton.xaml +++ b/src/Core/Controls/IconLabelButton/IconLabelButton.xaml @@ -11,13 +11,13 @@ + + + - - - Tapped; + public IconLabelButton() { InitializeComponent(); @@ -71,6 +73,11 @@ namespace Bit.App.Controls get { return (CornerRadius)GetValue(CornerRadiusProperty); } set { SetValue(CornerRadiusProperty, value); } } + + private void TapGestureRecognizer_OnTapped(object sender, TappedEventArgs e) + { + Tapped?.Invoke(sender, e); + } } } diff --git a/src/Core/Pages/Accounts/LoginPage.xaml b/src/Core/Pages/Accounts/LoginPage.xaml index 2e500d5fa..eafaef3d0 100644 --- a/src/Core/Pages/Accounts/LoginPage.xaml +++ b/src/Core/Pages/Accounts/LoginPage.xaml @@ -128,11 +128,9 @@ VerticalOptions="CenterAndExpand" Icon="{Binding Source={x:Static core:BitwardenIcons.Suitcase}}" Label="{u:I18n LogInSso}" - AutomationId="LogInWithSsoButton"> - - - - + AutomationId="LogInWithSsoButton" + Tapped="LogInSSO_Clicked" + />