Restyle toasts as a solid dark pill, top-center#8
Merged
Conversation
The light bordered card pinned bottom-right read like a Windows notification. Swap it for a solid near-black pill (bg-ink) with light text, rounded-full, anchored top-center; drop the per-type tint/border map and recolor the status icons for the dark surface (sage tick / red-400 cross). Flip the toast-in keyframe to drop in from above to suit the top anchor. Behavior unchanged (types, TTLs, stacking, role=status, portal). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Problem
The toast notifications looked like a Windows app message — a light bordered card with a tinted background, icon on the left, pinned bottom-right.
Change
Restyle to a solid dark pill, top-center:
frontend/src/components/Toast.jsx— near-black fill (bg-ink), light text (text-paper),rounded-full, anchored top-center; dropped the per-type tint/borderSTYLEmap; recolored status icons for the dark surface (sage tick for success,red-400✕ for error).frontend/tailwind.config.js— flipped thetoast-inkeyframe to drop in from above (translateY(-8px)) to suit the top anchor.Behavior is unchanged (success/error/info types, TTLs, stacking,
role="status", portal).Verification
Rebuilt the Docker image and triggered toasts via the UI (Playwright). Both render as dark top-center pills with legible contrast — green tick for "Batch deleted." / "Student removed.", red ✕ for "Can't delete…". Delete flows unregressed (3/3).
🤖 Generated with Claude Code