ui(agents): light-theme overlays + draggable top strip#12
Merged
Conversation
Overlays (Dropdown, Popover, ContextMenu, Select) used to hardcode a `dark` class on their content, producing a dark surface in the otherwise light UI. Replaced the hardcoded class with an opt-in `forceDark` prop (default `false`) across all four primitives, so every dropdown / popover / context menu / select follows the active theme by default. Added a 32px draggable strip at the top of the main content pane in `agents-layout.tsx` so window dragging works from any view (previously only the sidebar top was draggable). Added `-webkit-app-region: no-drag` carve-outs to interactive elements that sit inside the strip — AgentsHeaderControls hamburger, NewChatForm mobile fallback, SubChatSelector tabs and Plus button, AutomationsView / InboxView / AutomationsDetailView headers — so buttons remain clickable while empty gaps stay draggable. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Overlays (Dropdown, Popover, ContextMenu, Select) used to hardcode a
darkclass on their content, producing a dark surface in the otherwise light UI. Replaced the hardcoded class with an opt-inforceDarkprop (defaultfalse) across all four primitives, so every dropdown / popover / context menu / select follows the active theme by default.Added a 32px draggable strip at the top of the main content pane in
agents-layout.tsxso window dragging works from any view (previously only the sidebar top was draggable). Added-webkit-app-region: no-dragcarve-outs to interactive elements that sit inside the strip — AgentsHeaderControls hamburger, NewChatForm mobile fallback, SubChatSelector tabs and Plus button, AutomationsView / InboxView / AutomationsDetailView headers — so buttons remain clickable while empty gaps stay draggable.