Repository navigation
fix(ui): dark-mode surfaces — buttons, filters, cards, tables, entity, Explore & Classification - #33905
Conversation
…rface The entity header card, the entity tab-nav bar (.ant-tabs.tabs-new) and the description card rendered at bg-primary (#0c0e12 page color) in dark, blending into the page. Switch them to surface (#22262f): tw:bg-surface on the header + description card, --om-color-bg-surface on the tab-nav. Light unchanged (surface == primary == #fff in light). Verified live on :3000: all three compute to rgb(34,38,47). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
This reverts commit 47d47ba; the fix ships with the Classification dark-mode PR instead.
…isabled - TableV2 sticky (fixed) columns painted inline white; use surface for cells and bg-secondary for the header so they match their row - .activeCategory used the light brand-100 tint; dark uses the selected brand surface - disabled antd buttons and pagination used a static 25% black; dark retints to text-disabled
The login video panel kept its fixed lavender gradient in dark, leaving half the page light. Dark drops the gradient for bg-primary so it matches the form panel; light and the Collate override hook are unchanged.
antd Result hardcodes rgba(0,0,0,...) title/subtitle colors, so the 'Something went wrong' page was unreadable on the dark surface. Use the text-primary/tertiary tokens, which flip with the theme.
The results panel used bg-primary, the same as the Explore canvas, so it didn't read as a surface. Dark now uses bg-secondary (the canvas tone of the DQ dashboard), giving canvas -> panel -> result card the same step-up. Light is unchanged.
The bordered bg-primary card behind the description and tags table added a redundant dark layer. Dark now makes the wrapper transparent and lifts the description card to bg-surface so it matches the table. Scoped to the Classification page; the shared description component is untouched.
Extends the results-panel fix to the filters bar, Browse Estate tree and entity summary panel, which also used bg-primary (the canvas tone). One .explore-page-scoped dark rule replaces the per-component class so every container steps up to bg-secondary, with result cards on bg-surface above. Light is unchanged.
Popovers (domain/owner pickers etc.) rendered on @popover-bg -> @component-background, i.e. bg-primary, so in dark they blended into the canvas. Point @popover-bg / @popover-background / @dropdown-menu-bg / @select-dropdown-bg at bg-surface, and let a Tree inside a popover go transparent so it doesn't punch a bg-primary hole. Light: surface is white, unchanged.
The core Popover (owner picker and every other PopoverTrigger), the date-picker dialogs, the AI user submenu and the TableV2 filter menu hardcoded bg-primary, so in dark they blended into the canvas. Swap to bg-surface, which resolves to bg-primary in light (no change there) and gray-800 in dark. Dropdown/Select menus already sit on bg-raised.
The left panel card sat on bg-primary, the canvas tone. Pass cardClassName tw:dark:bg-surface through ResizableLeftPanels so it matches the description/table cards; scoped to the Tags page.
On bg-surface the antd popover had no visible edge. Match the core Popover: 1px outline in border-secondary_alt and radius-xl, dark only so light keeps its existing antd look.
Move the filters bar, Browse Estate, results and entity summary containers from bg-secondary to bg-surface so they match the search card; result cards stay distinguishable by their border.
Address review: read the semantic --om-* alias (with its light fallback) instead of the raw --color-bg-surface token.
The AI-mode Explore wrapper forced bg-primary on the page (including an !important on .explore-page); dark now uses bg-secondary there. Result cards also move to bg-secondary so they sit a step below the bg-surface containers. Light is unchanged.
Match the AI Automations template card: border-secondary border, radius-2xl, shadow-xs at rest; on hover a brand-300 border, shadow-lg and a 2px lift, 160ms ease. Scoped to the Explore results list since ExploreSearchCard is reused elsewhere; the selected-card border is restated so it still wins.
Move the border/elevation/hover from the Explore-scoped rule into the card component so every list (Explore, glossary/domain assets, tasks, search preview) gets it, and give the selected card the same brand-300 border as hover. Drop the dark assets-tab !important card border that would mask it, and keep the embedded entity popover preview flat.
The summary panel title pill used bg-surface, the same as the panel, so it didn't read as a header. Dark now uses bg-secondary, the entity card tone.
Overview values used the raw gray-900 palette step, near-black in dark; switch to the text-primary token (same value in light). Bordered antd icon buttons (description/owners/domains edit) filled bg-primary, black boxes on the surface; dark makes them transparent.
…ntity-dark-surface Folds PR #33942 into this PR. Explore changes are taken from #33942 as-is (no textual conflicts). The four overlay conflicts (core Popover, both date pickers, antd popover/dropdown less vars) keep this branch's bg-overlay-surface token, which already covers modals, drawers, menus and calendars and resolves to the same gray-800 in dark; #33942's AI user submenu and TableV2 filter menu are aligned to that token.
|
| Count | Rule |
|---|---|
| 36 | react-hooks/exhaustive-deps |
| 14 | openmetadata-imports/no-circular-imports |
| 11 | openmetadata-ui-patterns/no-non-adaptive-palette |
| 5 | openmetadata-imports/no-lower-layer-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Customization/GenericTab/GenericTab.tsx:23:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/Customization/GenericTab/GenericTab.tsx:24:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/Customization/GenericTab/GenericTab.tsx:70:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'handleHeightChange'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:41:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:42:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:43:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:79:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:87:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:94:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:95:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:99:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:100:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:101:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:102:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:112:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:113:1 |
openmetadata-imports/no-circular-imports |
This runtime import participates in a circular dependency. Extract the shared type/constant/utility or invert the dependency. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:251:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'hasFollowers'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:375:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'entityType', 'fetchActiveAnnouncement', 'fetchContainerAncestors', and 'fetchDQFailureCount'. Either include the |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:664:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'dataAsset.fullyQualifiedName'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:740:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchDataContract'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataAssets/DataAssetsHeader/DataAssetsHeader.component.tsx:853:29 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-700) or a semant |
| 🟡 | src/components/Database/Profiler/DataQualityTab/DataQualityTab.tsx:49:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/Database/Profiler/DataQualityTab/DataQualityTab.tsx:499:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'applyInlinePermissions' and 'collectInlineIncidentStatuses'. Either include them or remove the dependency array. |
| 🟡 | src/components/common/EntityDescription/Description.tsx:102:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/EntityDescription/Description.tsx:106:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/EntityTitleSection/EntityTitleSection.tsx:156:22 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:bg-gray-blue-50" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:bg-utility-gray-blue-50) or a se |
| 🟡 | src/components/common/EntityTitleSection/EntityTitleSection.tsx:157:25 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-700) or a semant |
| 🟡 | src/components/common/EntityTitleSection/EntityTitleSection.tsx:166:25 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-700) or a semant |
| 🟡 | src/components/common/Table/TableV2.tsx:1084:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'scroll'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1282:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'rest'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1310:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'rest'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1340:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'rest'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1389:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'setPreference'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1411:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'setPreference'. Either include it or remove the dependency array. |
| 🟡 | src/components/common/Table/TableV2.tsx:1627:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'filteredDataSource.length' and 'rest'. Either include them or remove the dependency array. |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:95:19 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-400" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-400) or a semant |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:113:21 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-500" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-500) or a semant |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:171:35 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-gray-400" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-400) or a semant |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:181:35 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:text-blue-500" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-blue-500) or a semant |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:242:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'appVersion' and 'setAppVersion'. Either include them or remove the dependency array. |
| 🟡 | src/components/discovery/personal-space/AIUserMenu/AIUserMenu.tsx:398:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'openPanel'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/integration/ConnectionsPage/ConnectionsListView.tsx:314:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'selectedServiceTypes' and 'setCsvParam'. Either include them or remove the dependency array. |
| 🟡 | src/components/integration/ConnectionsPage/ConnectionsListView.tsx:331:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'setCsvParam'. Either include it or remove the dependency array. |
| 🟡 | src/components/integration/ConnectionsPage/ConnectionsListView.tsx:653:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/observability/DataQuality/TestCases/TestCases.tsx:18:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/observability/DataQuality/TestCases/TestCases.tsx:19:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/observability/DataQuality/TestSuites/TestSuites.tsx:20:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/observability/IncidentManager/IncidentManagerPage.tsx:40:3 |
openmetadata-ui-patterns/no-non-adaptive-palette |
Raw palette class "tw:[&_.custom-chart-background]:bg-gray-blue-25" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:bg- |
| 🟡 | src/pages/ExplorePage/ExplorePageV1.component.tsx:237:7 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'navigate' and 'tabsInfo'. Either include them or remove the dependency array. |
| 🟡 | src/pages/ExplorePage/ExplorePageV1.component.tsx:250:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
… and 16 more. Run make ui-checkstyle-changed locally for the full list.
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Shared theme tokens and controls restyle Explore, entities, tables, and overlays. Dark-mode surface pass raises buttons, filters, cards, tables, and entity surfaces from ✅ 1 closed✅ Bug: Dark-mode hover now darkens secondary buttons instead of lightening
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Summary
Dark-mode surface pass: raised containers and controls that rendered at
bg-primary(#0c0e12, the page color) now use the raised surface (#22262f), and page-level gaps match the page.Generic (all call sites)
@btn-default-bg: var(--om-color-bg-surface)@table-bg: var(--om-color-bg-surface)— header keeps its contrasting bg.ant-card→var(--om-color-bg-surface)ButtonButtonUtility:tw:bg-primary→tw:bg-surfaceFilterSelecttw:bg-primary→tw:bg-surfaceTable<table>getstw:dark:bg-surface(was transparent; dark-only so light tables on grey pages don't change); header keepsbg-secondarybg-overlay-surfacetokenrgb(34,38,47))--om-color-bg-overlay-surface; core Dropdown + Select popover (wasbg-raised), Popover, FieldDocPopover, DatePicker dialogs (wasbg-primary) →tw:bg-overlay-surface*-active.svgbrand-800 fills/strokes →currentColor(matches label), light knock-outs →bg-surfaceTargeted
DataAssetsHeader) and Description card (wrapInCard) →tw:bg-surfaceGenericTab) —bg-grey(#f8f9fc blue tint in the gaps between right-panel widgets) →tw:bg-primary.explore-tree) → transparent so it inherits the card surface.content-area, sticky.title-section, DQ tab pane) →--om-color-bg-surfacetw:bg-surface; active count chip white text in dark.ant-typography-secondary) →text-tertiaryin dark (was static 45% black); bordered icon buttons (.ant-btn-icon-only.bordered, e.g. owner edit) → surface in light, transparent in dark (host surface shows through)utility-brand-50/100fillhoverColor→ brand-100,selectedColor→ brand-700) — inline vars beat.dark-moderemaps, sobg-brand-secondary/utility-brand-700stayed light in dark (affects every brand chip/tint)tw:bg-surfaceso the filter/title header band matches Test Case Insights; observabilityFilterChiptrigger → surface;tbodysets--markdown-clamp-fade-colorto surfaceDqSummaryPanel), Test Case Insights card, owner chip (chipTriggerClassName) → surface; Test Suites owner chevron now useschipChevronClassName(same icon/size as the Summary filters)tw:bg-surfaceso it matches the rowtw:dark:bg-transparentso gaps between the metric cards match the pageScope
AI mode only. Classic-only changes were reverted; shared components (antd vars, core components, entity header/description, GenericTab) are kept since AI mode renders them too. Includes the Classification / Explore / sign-in work from #33942 (merged in, see below).
Light mode
Unchanged except the entity widget-grid gaps (blue-grey → white).
bg-surface/--om-color-bg-surfaceresolve tobg-primary(#fff) in light; verified computed styles with.dark-moderemoved (select#fff, core table still transparent).Verified
Ran on :3000 in dark (classic + AI mode):
/data-quality/{dashboard,test-cases,test-suites}and/observability/data-quality/*— filters, cards, table body readrgb(34,38,47); headers keep contrast. Jest: 508 app + 66 core tests pass on touched areas.Note
Entity tab bar is out of scope (entity tabs moved to core Tabs in #33890). Split out of #33876.
Folded in from #33942
background: 'white'→--om-color-bg-surfacefor cells,--om-color-bg-secondaryfor the header, so pinned columns (e.g. Actions) match their row..activeCategory(selected left-list item)@primary-1tint.--om-color-text-disabledinstead of static 25% black.Toggletw:dark:bg-quaternary(darkbg-tertiary== surface, so the off track vanished on cards).bg-surface, matching the table.bg-primary; Collate override hook unchanged.Resulttitle/subtitle →--om-color-text-primary/text-tertiary.bg-surface; page background (AI-mode wrapper, incl. its!important) and result cards →bg-secondary.ExploreSearchCard, every list)border-secondary,radius-2xl,shadow-xs; hover →brand-300border,shadow-lg, 2px lift (160ms); selected card uses the samebrand-300border. Dark assets-tab!importantborder dropped; embedded entity-popover preview stays flat. Both themes.EntityTitleSection) → darkbg-secondary;.overview-valuerawgray-900→--om-color-text-primary..ant-popover-innergets the core Popover edge (1pxborder-secondary_altoutline,radius-xl); a Tree inside a popover goes transparent. Overlay backgrounds use this PR'sbg-overlay-surfacetoken (conflicts resolved to it; AI user submenu and TableV2 filter menu aligned).Merged tree: Jest 649 passed on touched areas (Explore, Table, Classifications, TagsPage, ExplorePage, EntityTitleSection, OverviewSection, AIUserMenu, LoginPage, Explore summary); Prettier clean.
🤖 Generated with Claude Code