Skip to content

fix(ui): theme overlay surfaces (dialogs, drawers, menus, popovers) - #33310

Merged
shah-harshit merged 2 commits into
mainfrom
6571-dark-theme-overlays
Sep 15, 2026
Merged

shah-harshit merged 2 commits into
mainfrom
6571-dark-theme-overlays

Conversation

@shah-harshit

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes open-metadata/openmetadata-collate#6571
Gate contract: open-metadata/openmetadata-collate#6564
Token foundation: #33249 (re-tint follow-up: #33294)

Themes the shared overlay/feedback core components for AI-mode dark theme. They previously rendered on bg-primary — which is the page background in dark — with generic shadow-lg/shadow-xl and border-secondary dividers, so in dark mode overlays blended into the page with no elevation and their dividers (dark border-secondary = the surface color) were invisible.

  • Modal dialog panel → bg-overlay-surface + shadow-overlay; footer/section dividers → border-subtle.
  • Slideout drawer → bg-overlay-surface + shadow-overlay; footer divider → border-subtle top border (was an inset border-secondary shadow).
  • Dropdown menu and select popover → bg-raised + shadow-raised; dropdown separator → border-subtle top border (was a solid bg-border-secondary hairline that did not flip in dark).
  • Tooltip unchanged — its bg-primary-solid is intentionally a dark surface in light mode (the conventional tooltip treatment).

Light mode is unchanged: overlay-surface/raised alias primary, and shadow-overlay/shadow-raised alias xl/lg, in light — so these are no-ops in light and flip only under .dark-mode via the existing semantic bridge. Verified every utility resolves and flips on this branch by compiling the app Tailwind against a probe.

Added focused open-state theme tests for the dropdown menu, modal dialog, and drawer surfaces.

Type of change:

  • Improvement

Frontend Preview (Screenshots)

Not attached — shared primitive color-role change with no layout/interaction change. Storybook exercises Modal, Dropdown, Select, SlideoutMenu, and Tooltip.

Checklist:

  • I have read the CONTRIBUTING document.
  • PR references the implementation ticket and Gate Zero contract.
  • No raw theme-sensitive colors or explicit dark overrides added.
  • Existing component APIs, interactions, and accessibility are unchanged.
  • Added unit tests for the changed shared-component theme roles.

Overlays rendered on bg-primary (= page background in dark) with generic
shadow-lg/xl and border-secondary dividers, so in dark mode they blended into
the page with no elevation and their dividers (border-secondary = surface color
in dark) were invisible. Move them to the approved semantic roles:

- Modal dialog panel: bg-overlay-surface + shadow-overlay; footer/section
  dividers use border-subtle.
- Slideout drawer: bg-overlay-surface + shadow-overlay; footer divider is now a
  border-subtle top border instead of an inset border-secondary shadow.
- Dropdown menu and select popover: bg-raised + shadow-raised; dropdown
  separator is a border-subtle top border instead of a solid bg-border-secondary
  hairline (which did not flip in dark).

All roles are no-ops in light (overlay-surface/raised/shadow-overlay/shadow-raised
alias primary/xl/lg in light) and flip in dark via the existing semantic bridge,
so light mode is unchanged. Tooltip keeps bg-primary-solid (a dark surface in
light mode is the correct tooltip treatment). Added focused open-state theme
tests for the dropdown, modal, and drawer surfaces.

Fixes open-metadata/openmetadata-collate#6571

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels Sep 15, 2026
@shah-harshit shah-harshit self-assigned this Sep 15, 2026
@shah-harshit shah-harshit added the skip-pr-checks Bypass PR metadata validation check label Sep 15, 2026
@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit a777329d345c2a48364f0c79047e39c50076efb0 in Playwright run 34972811799, attempt 1.

✅ 65 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 41m 46s

⏱️ Max setup 3m 2s · max shard execution 9m 33s · max shard-job elapsed before upload 13m 22s · reporting 3s

🌐 168.75 requests/attempt · 1.72 app boots/UI scenario · 0.00% common-shard skew

Optimization targets still in progress:

  • Application boot ratio was 1.72 per UI scenario (115 boots / 67 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 65 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@gitar-bot

gitar-bot Bot commented Sep 15, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Fixes dark theme rendering for overlay surfaces (dialogs, drawers, menus, popovers) by applying semantic theme tokens (bg-overlay-surface, bg-raised, shadow-overlay, shadow-raised) instead of generic primary/shadow utilities. Light mode is unaffected via token aliasing. Added theme tests for dropdown, modal, and drawer surfaces. No issues found.

Review coverage

Rules No rules evaluated

Functional validation Not enabled · Set up

Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@karanh37
karanh37 added this pull request to the merge queue Sep 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-15T16:01:38Z)

Blocked the queue: playwright-summary

@shah-harshit
shah-harshit added this pull request to the merge queue Sep 15, 2026
Merged via the queue into main with commit 53604d6 Sep 15, 2026
94 checks passed
@shah-harshit
shah-harshit deleted the 6571-dark-theme-overlays branch September 15, 2026 21:20

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants