Skip to content

feat(ui): add border and shadow to floating menu components#1747

Open
MartinS-git wants to merge 14 commits into
mainfrom
menu-background
Open

feat(ui): add border and shadow to floating menu components#1747
MartinS-git wants to merge 14 commits into
mainfrom
menu-background

Conversation

@MartinS-git

@MartinS-git MartinS-git commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Add border-theme-default and shadow-theme-default to floating menu and overlay components to ensure they are always visually distinct from the page background.

Affected components

  • Select — border and shadow applied on the outer floating container to prevent shadow clipping; duplicate surface styles (jn:rounded, jn:bg-theme-background-lvl-1) removed from inner menu container
  • ComboBox — border and shadow added to dropdown menu panel
  • PopupMenu — border and shadow added to floating menu panel
  • TooltipContent — replaced custom drop-shadow-[0_0_4px_rgba(0,0,0,0.15)] with consistent shadow-theme-default; border added
  • Toast — border and shadow added
  • DateTimePicker — border and shadow added to flatpickr calendar popup

Closes #1738

@changeset-bot

changeset-bot Bot commented Jun 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fa6f40f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@cloudoperators/juno-ui-components Patch
@cloudoperators/juno-app-carbon Patch
@cloudoperators/juno-app-doop Patch
@cloudoperators/juno-app-example Patch
@cloudoperators/juno-app-greenhouse Patch
@cloudoperators/juno-app-heureka Patch
@cloudoperators/juno-app-supernova Patch
@cloudoperators/juno-app-template Patch
@cloudoperators/juno-messages-provider Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

🚀 View preview at
https://cloudoperators.github.io/juno/pr-preview/pr-1747/

Built to branch gh-pages at 2026-06-15 12:34 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@MartinS-git MartinS-git marked this pull request as ready for review June 10, 2026 08:55
@MartinS-git MartinS-git requested review from a team and franzheidl as code owners June 10, 2026 08:55
Copilot AI review requested due to automatic review settings June 10, 2026 08:55

Copilot AI 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.

Pull request overview

This PR updates several overlay/floating UI components in ui-components to ensure menus/popovers remain visually distinct from similar page backgrounds by adding theme-driven borders and shadows.

Changes:

  • Add jn:border jn:border-theme-default and jn:shadow-theme-default to ComboBox, PopupMenu, TooltipContent, and Toast.
  • Update Select by introducing a styled floating menu container that provides the same border/shadow treatment.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/ui-components/src/components/TooltipContent/TooltipContent.component.tsx Replace custom drop-shadow with theme border + shadow on tooltip surface.
packages/ui-components/src/components/Toast/Toast.component.tsx Add theme border + shadow to toast container.
packages/ui-components/src/components/Select/Select.component.tsx Add a floating menu container with theme border + shadow for the Select dropdown panel.
packages/ui-components/src/components/PopupMenu/PopupMenu.component.tsx Add theme border + shadow to popup menu panel.
packages/ui-components/src/components/ComboBox/ComboBox.component.tsx Add theme border + shadow to combobox options panel.

Comment thread packages/ui-components/src/components/Select/Select.component.tsx
edda
edda previously approved these changes Jun 10, 2026

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread packages/ui-components/src/components/Select/Select.component.tsx

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread packages/ui-components/src/components/Select/Select.component.tsx

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@TilmanHaupt

TilmanHaupt commented Jun 15, 2026

Copy link
Copy Markdown
Member
Bildschirmfoto 2026-06-15 um 10 57 44

I am unsure but i dont see the boarder at dateTimePicker? Or should it be that way

Add `border-theme-default` and `shadow-theme-default` to Select,
ComboBox, PopupMenu, TooltipContent and Toast to ensure menus and
overlays are always visually distinct from the page background.

Closes #1738

Signed-off-by: MartinS-git <info@eyepic.de>
…ent shadow clipping

Signed-off-by: MartinS-git <info@eyepic.de>
jn:rounded and jn:bg-theme-background-lvl-1 are already applied on the
outer floating container via menuStylesContainer. Keeping them in
menuStyles created two sources of truth for the menu surface styling.

Signed-off-by: MartinS-git <info@eyepic.de>
Signed-off-by: MartinS-git <info@eyepic.de>
Signed-off-by: MartinS-git <info@eyepic.de>
Signed-off-by: MartinS-git <info@eyepic.de>
… prevent border misalignment

Signed-off-by: MartinS-git <info@eyepic.de>
…ion hover backgrounds at rounded corners

Signed-off-by: MartinS-git <info@eyepic.de>
…shadow

Signed-off-by: MartinS-git <info@eyepic.de>
…opup renders outside theme wrapper

Signed-off-by: MartinS-git <info@eyepic.de>

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread .changeset/menu-background-distinction.md Outdated
MartinS-git and others added 2 commits June 15, 2026 11:26
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: MartinS-git <info@eyepic.de>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: MartinS-git <info@eyepic.de>
…gher specificity and correct token

Signed-off-by: MartinS-git <info@eyepic.de>

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread packages/ui-components/src/components/Select/Select.component.tsx
…hen opened

Signed-off-by: MartinS-git <info@eyepic.de>

Copilot AI 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.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

@MartinS-git MartinS-git requested a review from Copilot June 15, 2026 12:39
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.

[Task](ui): ensure menus are always visually distinct from the page background

4 participants