Repository navigation
Mark what an undo took back with the change tint, and show it over a box's rows - #6449
Merged
Merged
Conversation
…box's rows max-sixty asked, after #6447 landed the undo's ring, for the tint a revision's changed blocks already take instead, judging the tint better to look at and best suited to a mark that lasts a moment. So ⌘Z, or a notice's Undo, now marks what it took back with `backgroundFlash`, the tint of a newly arrived message and of a revision's changed block, and the ring's keyframes and its entry among the band marks in tokens.css go. The held notice stays. On the options box the tint didn't show at all: `backgroundFlash` animated the element's own background, and each option row paints its own ground over it. A revision changing such a widget showed no tint either. `backgroundFlash` now tints each box inside the element that paints a background, ending them with the element's animation, which it still returns. The undo test now waits for the rows' tint as well as the box's; it times out against the old `backgroundFlash`.
leaf-agent
approved these changes
Nov 19, 2026
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.
What ⌘Z, or a notice's Undo, took back now takes the yellow tint a newly arrived message and a revision's changed block already take (
backgroundFlash), in place of the outline #6447 added. The held notice stays. max-sixty asked for this after #6447 landed, judging the tint better to look at for a mark that lasts a moment, so the page now marks every change it shows the same way.The tint needed a fix to show on a widget at all:
backgroundFlashanimated only the element's own background, and an option row paints its own ground over the box's, so on the options box (the most common thing an undo marks) the tint was invisible. A revision changing such a widget showed no tint either. It now also tints each box drawn inside the element that paints a background, and those animations end with the element's, which is still the one it returns, solf-tabsand the publicbackgroundFlashkeep their contract.To weigh: the walk reads one computed style per descendant of the tinted element, once per flash, so a revision that changes a large block pays for its size once.
Checks: the undo test now waits for the rows' tint as well as the box's, and times out against the old
backgroundFlash.test_a_decided_change_folds_away_rather_than_vanishingnow allows the undo's tint on the struck paragraph after its last undo, and still requires its fold to be gone. Of the 215 browser tests that flash, tint, undo or read notices, all pass buttest_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosure, which fails on main too;pnpm run test:runtimeandcheck:browserpass. Firefox stills, light and dark, are on max-sixty's page.