Repository navigation
Studio: give toast notifications the composer's shadow - #12800
Merged
Merged
Conversation
Light toasts used their own two-layer shadow. They now cast the composer's (0 2px 8px -2px at 16% black), matching dark mode, where toasts already share the composer's page-coloured shadow. A test keeps the two in step.
Member
Author
|
@codex review |
This comment has been minimized.
This comment has been minimized.
--composer-shadow is set for light, dark and both Neon Cyberpunk modes, and the composer and toasts read it, so toasts pick up palette glows too. The composer's focus glows stay composer-only. The test now checks that every composer and toast shadow reads the variable.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
added a commit
that referenced
this pull request
Oct 6, 2026
… left them (#12810) #12800 moved the composer's shadow into --composer-shadow, set per mode and per palette. Two frontend unit tests read the stylesheet in a shape that no longer holds: - find-in-page compared the composer's literal box-shadow with the find bar's; the composer now reads var(--composer-shadow). The test resolves a variable to its light :root value, which is what the composer paints in light mode. - color-themes read the first block opening :root[data-palette=...]:not(.dark), and Neon Cyberpunk now opens it twice (the --composer-shadow block comes first). The test reads every block the palette opens.
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.
Summary
Toast notifications now use the same shadow as the main chat composer in light mode, dark mode and the Neon Cyberpunk palette, read from one shared variable.
Changes
--composer-shadowis set in:root(light),.dark, and both Neon Cyberpunk modes..chat-composer-surface,.unsloth-composer-surfaceand styled toasts all read it, so the duplicated dark mode shadow lines are gone.0 2px 8px -2px rgba(0, 0, 0, 0.16). Toasts previously had their own heavier two-layer shadow (0 1px 2pxat 4% plus0 8px 24px -6pxat 14%).0 4px 20px 4px var(--background), which toasts already used.:focus-withinglows and the docked composer'snoneare unchanged, since toasts never take focus.toast-composer-shadow.test.tschecks that every composer and toast shadow (other than focus and dock states) readsvar(--composer-shadow), and that the variable is set for light, dark and both Neon Cyberpunk modes. A future palette override cannot skip toasts without failing it.Testing
toast-composer-shadow.test.tspasses. The fullnpm testsuite passed on the first commit (10577 tests).box-shadow. They match in light, dark, Neon Cyberpunk light and Neon Cyberpunk dark.