feat: add rich tooltip mode to Tooltip#5031
Open
hazrid93 wants to merge 1 commit into
Open
Conversation
hazrid93
force-pushed
the
hazrid93/4074_rich_tooltip
branch
from
July 20, 2026 11:22
5220950 to
0212627
Compare
Closes callstack#4074. Extends Tooltip with a mode that selects between the current plain behaviour and a new rich behaviour. Rich mode renders an optional heading above multi line supporting text and up to two action buttons. Each action button is individually pressable, exposes a button accessibility role and label, invokes its own callback, and dismisses the tooltip. A rich tooltip is persistent, staying open after the trigger touch ends, and dismisses on an action press or an outside tap, firing a dismissal callback on close. Plain mode keeps the current fixed 32px container height and single line label, and rich only props have no effect in plain mode. The new mode, action, and dismiss types are exported from the public surface.
hazrid93
force-pushed
the
hazrid93/4074_rich_tooltip
branch
from
July 20, 2026 11:59
0212627 to
4aa9d47
Compare
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.
feat: add rich tooltip mode to Tooltip
Closes #4074.
Extends Tooltip with a mode that selects between the current plain behaviour and a new rich behaviour. Rich mode renders an optional heading above multi line supporting text and up to two action buttons.
Each action button is individually pressable, exposes a button accessibility role and label, invokes its own callback, and dismisses the tooltip. A rich tooltip is persistent, staying open after the trigger touch ends, and dismisses on an action press or an outside tap, firing a dismissal callback on close. Plain mode keeps the current fixed 32px container height and single line label, and rich only props have no effect in plain mode. The new mode, action, and dismiss types are exported from the public surface.