Skip to content

feat(data-weaver): adjust z-indexes and overlay positioning - #445

Closed
pablonoel wants to merge 3 commits into
datacommonsorg:mainfrom
pablonoel:ui-card_styles
Closed

feat(data-weaver): adjust z-indexes and overlay positioning#445
pablonoel wants to merge 3 commits into
datacommonsorg:mainfrom
pablonoel:ui-card_styles

Conversation

@pablonoel

@pablonoel pablonoel commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Overview

This PR address the following

  • Update input box corners
  • Group selection on top of AI-thinking-Card
  • Update colors for tiles and canvas backgrounds

Related Issues

Fixes # (issue number)

Changes Made

  • Lift UI overlays above page content: switch controls/selection containers to fixed positioning and move Selection into its own Portal.
  • Add $z-index-prompts and $z-index-menus and apply them to controls, menus, selection and prompts.
  • Small UI tweaks: increase prompt border-radius.
  • Update color tokens by adding surface-faded and surface-strong, and change atlas-surface and card-surface to use the new tokens.
  • Changes touch in_front_of_canvas components, page_home styles, _z-indices, and tokens/colors.json.
Screenshot 2026-08-21 at 12 47 42 AM

Testing Done

Describe the steps you took to test these changes (please also list commands ran if possible).

  • Unit tests passed
  • Integration tests passed
  • Manual verification

Checklist

  • I have followed the style guidelines of this project.
  • I have commented my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.

Note: Only Maintainers can approve and merge PRs. Expected initial review time: 3 business days.

- Lift UI overlays above page content: switch controls/selection containers to fixed positioning and move Selection into its own Portal.
- Add $z-index-prompts and $z-index-menus and apply them to controls, menus, selection and prompts.
- Small UI tweaks: increase prompt border-radius.
- Update color tokens by adding surface-faded and surface-strong, and change atlas-surface and card-surface to use the new tokens.
- Changes touch in_front_of_canvas components, page_home styles, _z-indices, and tokens/colors.json.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the layout, layering, and styling of the canvas overlays. It splits the portal container into separate portals for controls/tools and selection, introduces new z-index levels ($z-index-prompts and $z-index-menus), and updates several color tokens. Feedback on these changes identifies a stacking context issue where the .selection-container's z-index limits its descendants, causing action menus to render behind prompts. It is recommended to increase .selection-container's z-index to $z-index-menus to resolve this.

.selection-container {
position: fixed;
inset: 0;
z-index: $z-index-above-content;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Because .selection-container has position: fixed, it creates a new stacking context. Setting its z-index to $z-index-above-content (which is lower than $z-index-prompts) caps the stacking level of all its descendants. As a result, even though .actions-container inside the selection has z-index: $z-index-menus, it will render behind the prompts (such as the AI-thinking-Card or prompt input) which are at $z-index-prompts. To ensure the selection and its action menus correctly render on top of the prompts as intended, the .selection-container's z-index should be increased to $z-index-menus.

Suggested change
z-index: $z-index-above-content;
z-index: $z-index-menus;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi pablo - please fix if this makes sense

@pablonoel
pablonoel marked this pull request as ready for review August 21, 2026 12:53
@nick-nlb nick-nlb changed the title Adjust z-indexes and overlay positioning feat(data-weaver): adjust z-indexes and overlay positioning Aug 23, 2026

@beets beets left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

this might conflict with the other z-index change, so will let you merge after you've had a chance to take a look

.selection-container {
position: fixed;
inset: 0;
z-index: $z-index-above-content;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi pablo - please fix if this makes sense

@nick-nlb

Copy link
Copy Markdown
Collaborator

This is closed as superseded by a subsequent PR (now already merged in).

@nick-nlb nick-nlb closed this Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants