Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit 5c2d689

Browse files
Fix build, Fix snackbar action button color on android, fix ios action button font (#1673)
* Fix snackbar action button color on android, fix ios action button font title * fix nullable error Co-authored-by: Gerald Versluis <[email protected]>
1 parent f6a3553 commit 5c2d689

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CommunityToolkit/Xamarin.CommunityToolkit/Views/Snackbar/SnackBar.android.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ internal async ValueTask Show(VisualElement sender, SnackBarOptions arguments)
9898
}
9999

100100
var snackActionButtonView = snackBarView.FindViewById<TextView>(Resource.Id.snackbar_action) ?? throw new NullReferenceException();
101-
if (arguments.BackgroundColor != Forms.Color.Default)
101+
if (action.BackgroundColor != Forms.Color.Default)
102102
{
103103
snackActionButtonView.SetBackgroundColor(action.BackgroundColor.ToAndroid());
104104
}

src/CommunityToolkit/Xamarin.CommunityToolkit/Views/Snackbar/SnackBar.ios.macos.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ internal ValueTask Show(VisualElement sender, SnackBarOptions arguments)
102102

103103
if (action.Font != Font.Default)
104104
{
105-
actionButton.Font = action.Font.ToUIFont();
105+
actionButton.TitleLabel.Font = action.Font.ToUIFont();
106106
}
107107

108108
if (action.ForegroundColor != Color.Default)

0 commit comments

Comments
 (0)