Repository navigation
feat(avalonia): P4 feedback components - #11
Merged
Merged
Conversation
added 4 commits
October 9, 2026 15:50
TextBlock defaults to one line, which cut off labels in fixed-width panels such as a hover card. TextWrapping="NoWrap" keeps the old behavior.
Spinner, tooltip, toast, alert-dialog and hover-card with its parts. Toasts live in the window's overlay layer, so Toast.Show works from anywhere. AlertDialog builds on the overlay host, so it gets the focus trap; ShellFloatingHost.ClaimsChild lets it place extra XAML children in its body. Tooltips also show on keyboard focus.
Light dismiss put a window-wide layer under the card, which took the pointer off the trigger: the card closed, the layer went away, the trigger was hovered again and the card reopened. A card opened by hover has no light dismiss now; one opened by touch, pen or the keyboard still closes on a tap outside.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the P4 tier to Avalonia: spinner, tooltip, toast, alert-dialog and hover-card.
Changes
Placementuses Avalonia'sPlacementMode(Top, Bottom, Left, Right) and keeps its 6px gap when flippedToast.Show / Success / Error / Warning / Info / Dismiss; the stack lives in the window's overlay layer above dialogs, pauses on hover, has an optional action button and a close button on hover;<ui:Toaster Position MaxVisible>is optionalShowAsync()returns the choice,Confirmed/Cancelledevents, backdrop doesn't dismiss, Escape = Cancel, focus trapped with Cancel focused first; extra XAML children go between the description and the buttonsShellFloatingHost.ClaimsChild: lets a host place XAML children itself (used by AlertDialog)ShellLabelwraps by default like MAUI's Label (TextWrapping="NoWrap"for one line)Verification
dotnet formatcheck cleandotnet new avalonia.appbuilds 0/0 with no MAUI code