Repository navigation
fix(fortal): start the tooltip fade on leave and give alert dialogs Fortal motion - #684
Open
chrishiguto wants to merge 7 commits into
Open
chrishiguto wants to merge 7 commits into
chrishiguto wants to merge 7 commits into
Conversation
chrishiguto
force-pushed
the
fortal-refresh/wb-fix-5-button-press
branch
from
December 2, 2026 19:34
97a1112 to
20b7c05
Compare
chrishiguto
force-pushed
the
fortal-refresh/wb-fix-6-dialog-tooltip
branch
from
December 2, 2026 19:34
c72d29c to
d7e7948
Compare
…sh/wb-fix-6-dialog-tooltip
…sh/wb-fix-6-dialog-tooltip
This branch has not been deployed
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.
Why
Two overlay timings the widgetbook pass flagged: tooltips held for 100ms after the pointer left before they began to fade, and the alert dialog story had no Fortal motion because only plain dialogs had a Fortal entry point.
Scope
fortalRouteTransition(theme/control_styles.dart) wraps a route's transition in the inherited themes captured between the call site and the navigator the route is pushed on (InheritedTheme.capture, as Flutter'sshowDialogcarries itsTheme).showFortalDialog,showFortalAlertDialog,showFortalBottomSheetandshowFortalDraweruse it. With the theme insidehomeand the route on the root navigator, the scrim and panel threw "No MixScope found" and no dialog showed: the widgetbook's dialog and alert dialog stories did exactly that.fortalTooltipStylesetsdismissDurationto zero, so the 100ms fade starts when the pointer leaves.showFortalAlertDialog:showRemixAlertDialogwith the scrim, panel motion and reduced-motion timing ofshowFortalDialog. The alert role, dismissal and focus stay Remix's. The alert dialog story uses it.Tests: the tooltip resolves a zero dismiss delay; the alert dialog takes the clear barrier and the Fortal scrim and stays up on a scrim tap.
Tradeoffs
showFortal*helpers rather than in the stories, because every app whoseFortalThemesits below its navigator (a theme insidehome, or around one page) hit the same error; stories can keep using the root navigator.FortalThemewas already anInheritedThemewith awrap, so only the capture was missing. Remix's ownshowRemixDialogstill carries only the Mix scope into the dialog body.Blast Radius
Additions:
fortalRouteTransition.Fortal dialogs, alert dialogs, bottom sheets and drawers pushed from below a
FortalThemenow take that theme (tokens, high contrast, brightness) and the call site's text style instead of throwing. Routes pushed from inside a theme that sits above the navigator are unchanged: nothing is captured.Additions:
showFortalAlertDialog.Fortal tooltips close as soon as the pointer leaves the trigger, with no grace to move onto the bubble.
Registry templates and mirrors for
tooltipanddialog.Verification
route_theme_capture_test.dartmounts the theme below the navigator and opens each of the four routes; all four throw "No MixScope found" without the capture.Release web build in Chromium: the Dialog and Alert Dialog stories open (Revoke access; Cancel and Delete project) with no console error. Before, both greyed the page and logged "No MixScope found".
Without the change the tooltip test fails (the delay resolves to null, so Remix's 100ms applies).
cd registry_source && flutter test; demo and dashboard suites.