Repository navigation
Lift dark-mode overlays onto a floating surface with an overlay shadow in core - #37235
Conversation
Popover, dropdown, select, date picker, hover card, confirm popover and field-doc popover now use bg-raised (gray-700 in dark, white in light) instead of bg-overlay-surface, which they shared with modal and slideout panels. A menu opened from a drawer now stands apart from it. Light mode is unchanged. Adds a SlideoutMenu WithSelect story for the drawer case. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Popover, hover card, date pickers and the field-doc popover now use shadow-raised with the secondary_alt outline, matching dropdown and select menus. Date pickers keep no outline (it leaked past the rounded corners, see #36707). In dark mode shadow-raised is deepened to black 50%/30% so overlays read as lifted; Tailwind inlines shadow values, so the override targets the utility under .dark-mode.
Popover and HoverCard set dark:text-primary: they portal to body, which sets no text colour, so Typography copy was black on the dark surface. Secondary Button/ButtonUtility hover to bg-raised in dark, which now equals the overlay; inside a shadow-raised overlay the hover steps one lighter. DatePicker keeps shadow-xl in light and FieldDocPopover keeps its border, so light is pixel-identical. Records the overlay surface decision in an ADR and points the styling rule at bg-raised.
Explore search suggestions drop the classes that re-applied the old surface over the core SelectPopover. The table column filter uses the core Popover (offset 8 keeps its position). The comment mention list and the editor slash/mention menus cannot be core components (quill-mention and tiptap own them), so they switch colour only to bg-raised.
|
| Count | Rule |
|---|---|
| 2 | openmetadata-ui-patterns/deprecated-om-tokens |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/common/CommentComposer/CommentComposer.constants.ts:89:3 |
openmetadata-ui-patterns/deprecated-om-tokens |
Legacy token "--om-shadow-lg" is deprecated. Use tw: utilities or --tw-* theme variables. Migrate existing references when editing them; do not add new referenc |
| 🟡 | src/components/common/Table/TableV2.tsx:1895:21 |
openmetadata-ui-patterns/deprecated-om-tokens |
Legacy token "--om-color-bg-secondary" is deprecated. Use tw: utilities or --tw-* theme variables. Migrate existing references when editing them; do not add new |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changedThe FeedEditor mention list used legacy tokens that stay white with a light-blue selection in dark, leaving near-white names on white. A dark-only override puts it on bg-raised with secondary text and the primary_hover selection, matching the other floating menus. Light is unchanged.
Design review found gray-700 too large a step. Floating overlays now sit on a new bg-floating token: white in light, #2b2f37 in dark (gray-800 plus 4% white). shadow-raised, used only by floating overlays, becomes the overlay shadow in both themes: near-black 14/8/6% in light, black 50/30/30% in dark. bg-raised keeps its other roles, so the overlay-only button hover rule is no longer needed. App menus that cannot be core components follow by colour. The decision record is renamed to match.
The light overlay shadow is a deliberate design-review change, not a regression: the theme-contract test now pins bg-floating in both themes, the light shadow-raised values and the dark override, and the elevation spec and decision record state the light-mode exception.
Code Review ✅ Approved 3 closed / 3 findings🟡 Medium risk · Changing shared overlay surfaces and shadows across core menus and app mentions could reduce contrast or obscure controls in affected themes. Lifts popovers, menus, selects, hover cards and date pickers onto a new ✅ 3 closed✅ Quality: Styling rule still sends popovers and menus to bg-overlay-surface
✅ Bug: Secondary button hover now matches the popover surface in dark
Closed: Bug: Light --shadow-raised changed: breaks theme-contract test and frozen light
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes open-metadata/openmetadata-collate#7322
In AI-mode dark, popovers, menus and selects used
bg-overlay-surface(gray-800), the same surface as drawers and modals, and their shadow (8% near-black) is invisible on dark and faint on white. A menu opened from a drawer (e.g. Classification › Add Tag) blended into it. The earlier caller-side override was reverted, so this fixes it in core.Floating overlays now share one treatment: a new
bg-floatingsurface + the overlay shadow (shadow-raised) in both themes + thesecondary_altedge. Values follow design review:bg-floating(new token)#2b2f37(gray-800 + 4% white), a subtle step above the gray-800 drawer/modalshadow-raised(overlay shadow, used only by floating overlays)0 12px 16px -4px/0 4px 6px -2px/0 2px 2px -1pxnear-black at 14 / 8 / 6%Modals and slideouts keep
bg-overlay-surface+shadow-overlay.bg-floatingis separate frombg-raisedbecausebg-raisedis also the dark hover fill of secondary buttons and lineage nodes; a Cancel button inside an overlay hovers to gray-700, which stays distinct from the#2b2f37panel.Core components
Popoverbg-overlay-surface→bg-floating;shadow-lg→shadow-raised; arrowfill-bg-primary(gray-950, mismatched in dark) →fill-bg-floating;dark:text-primaryDropdownmenu; selectPopover(Select, ComboBox, MultiSelect, TagSelect, Autocomplete);TreeSelect/FilterSelectviaDropdown.Popoverbg-floatingHoverCardbg-floating(body + arrow);shadow-lg→shadow-raised;dark:text-primaryDatePicker/DateRangePickerbg-floating;shadow-xl/shadow-raised→shadow-raised. No outline (it leaked past the rounded corners, #36707)FieldDocPopover(default)bg-floating;shadow-lg→shadow-raised; keeps itsborder-secondaryConfirmPopoverarrowbg-floating(body isPopover)Popover/HoverCardportal tobody, which sets no text colour, so inherited copy (aTypographyparagraph) rendered black on the dark surface. They now setdark:text-primary; light keeps inheriting.Tailwind inlines shadow values into the utility, so the dark shadow is applied by
.dark-mode .tw\:shadow-raisedinglobals.css; the light value is the token.App menus
ExploreSearchInput.tsx)SelectPopover; removed the classes that re-applied the old surface/shadow/edge over it. Keeps its size and padding.TableV2.tsx)Popover+Dialog→ corePopover(aria-label="filter",offset={8}keeps its position). Innerfilter-dropdownkeeps its testid, 264px cap, scroll and min-width. Corners follow core (rounded-xl).@/#mention list (CommentComposer.constants.ts)bg-floating(list is built byquill-mention, so it cannot be a core component).block-editor.less)var(--tw-background-color-floating)(tiptap/tippy keep focus and keyboard in the editor).@mention list (feed-editor.less)bg-floating,text-secondary,primary_hoverselection.The product-tour tooltip stays on
bg-overlay-surface(a one-off guide drawn byreact-tour).Decision record:
docs/decisions/2026-11-06-floating-overlays-sit-on-bg-floating.md..claude/rules/frontend-styling.md,docs/colors.mdandspecs/foundations/color.mdmap popover/menu/select →bg-floating. Added aSlideoutMenu / WithSelectstory for the drawer case.Type of change:
Screenshots — app (before =
main, after = this branch)Local stack, OSS UI from this branch against the local server. Each screen in Classic light, AI light and AI dark.
Core overlays on product screens
Classification › Add Tag drawer › Owners search (the issue's case)
Classification › Add Tag drawer › Icon picker
Table › Owners popover
Table › Tier dropdown
Table › ⋮ manage menu
Table › page-size dropdown
Explore › Owners filter
Home (no overlay, background check)
App menus
Table › column filter (now core Popover)
Explore › search suggestions
Edit Description › @ mention (editor)
Inbox › task comment › @ mention (AI mode only)
Table › Activity Feeds › comment @ mention (FeedEditor)
Screenshots — Storybook, every affected component
Not affected elsewhere
bg-raised,bg-overlay-surfaceandshadow-overlayare unchanged.shadow-raisedis used only by floating overlays (no other core or app usages).Tests:
Unit tests
popover.test.tsx(new): Popover sits onbg-floatingwithdark:text-primary,shadow-raisedand thesecondary_altoutline, notbg-overlay-surface. Fails without the fix.dropdown.theme.test.tsx: menu isbg-floating+shadow-raised, notbg-overlay-surface.field-doc-popover.test.tsx: default variant usesbg-floating+shadow-raised.src/components: 753 pass. The 6 failures inapplication/tag/*tooltip tests also fail onmain(unrelated).make ui-checkstyle-changed: clean.Manual testing
Checklist:
🤖 Generated with Claude Code