Skip to content

fix(ui): dark-mode surfaces — buttons, filters, cards, tables, entity, Explore & Classification - #33905

Merged
shah-harshit merged 42 commits into
mainfrom
fix/entity-dark-surface
Sep 24, 2026
Merged

shah-harshit merged 42 commits into
mainfrom
fix/entity-dark-surface

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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)

Area Change
antd default buttons @btn-default-bg: var(--om-color-bg-surface)
antd tables @table-bg: var(--om-color-bg-surface) — header keeps its contrasting bg
antd cards .ant-card → var(--om-color-bg-surface)
core Button secondary + color-secondary variants and ButtonUtility: tw:bg-primary → tw:bg-surface
core FilterSelect trigger tw:bg-primary → tw:bg-surface
core Table <table> gets tw:dark:bg-surface (was transparent; dark-only so light tables on grey pages don't change); header keeps bg-secondary
bg-overlay-surface token dark value gray-700 → gray-800 (rgb(34,38,47))
Popups, modals, dropdowns antd popover, dropdown/sub-menu, select/mentions dropdown, picker panel, modal, drawer vars → --om-color-bg-overlay-surface; core Dropdown + Select popover (was bg-raised), Popover, FieldDocPopover, DatePicker dialogs (was bg-primary) → tw:bg-overlay-surface
Sidebar selected icon (nav, rail, sub-rail, sub-panel) dark: *-active.svg brand-800 fills/strokes → currentColor (matches label), light knock-outs → bg-surface

Targeted

  • Entity header card (DataAssetsHeader) and Description card (wrapInCard) → tw:bg-surface
  • Entity tab widget grid (GenericTab) — bg-grey (#f8f9fc blue tint in the gaps between right-panel widgets) → tw:bg-primary
  • Explore Browse Estate tree (.explore-tree) → transparent so it inherits the card surface
  • Entity summary panel (.content-area, sticky .title-section, DQ tab pane) → --om-color-bg-surface
  • Connections left nav → tw:bg-surface; active count chip white text in dark
  • antd secondary text (.ant-typography-secondary) → text-tertiary in 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)
  • Explore quick-filter pills → utility-brand scale (light unchanged) + dark utility-brand-50/100 fill
  • ThemeProvider: in dark, skip inline light-only brand shades (hoverColor → brand-100, selectedColor → brand-700) — inline vars beat .dark-mode remaps, so bg-brand-secondary / utility-brand-700 stayed light in dark (affects every brand chip/tint)
  • AI table cards (Incidents, Test Library, Connections) → tw:bg-surface so the filter/title header band matches Test Case Insights; observability FilterChip trigger → surface; tbody sets --markdown-clamp-fade-color to surface
  • DQ AI mode — summary cards (DqSummaryPanel), Test Case Insights card, owner chip (chipTriggerClassName) → surface; Test Suites owner chevron now uses chipChevronClassName (same icon/size as the Summary filters)
  • DQ test-case table sticky Actions cell → tw:bg-surface so it matches the row
  • Incidents widgets frame → tw:dark:bg-transparent so gaps between the metric cards match the page

Scope

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-surface resolve to bg-primary (#fff) in light; verified computed styles with .dark-mode removed (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 read rgb(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

Area Change
TableV2 sticky (fixed) columns Inline background: 'white' → --om-color-bg-surface for cells, --om-color-bg-secondary for the header, so pinned columns (e.g. Actions) match their row.
.activeCategory (selected left-list item) Dark: brand selected surface instead of the light @primary-1 tint.
Disabled antd buttons + pagination Dark: --om-color-text-disabled instead of static 25% black.
Core Toggle Unchecked track tw:dark:bg-quaternary (dark bg-tertiary == surface, so the off track vanished on cards).
Classification page Details wrapper transparent in dark; description card and left panel on bg-surface, matching the table.
Sign-in page video panel Dark drops the lavender gradient for bg-primary; Collate override hook unchanged.
Error page ("Something went wrong") antd Result title/subtitle → --om-color-text-primary / text-tertiary.
Explore containers Filters, Browse Estate, results, entity summary → bg-surface; page background (AI-mode wrapper, incl. its !important) and result cards → bg-secondary.
Entity cards (ExploreSearchCard, every list) AI Automations template-card look: border-secondary, radius-2xl, shadow-xs; hover → brand-300 border, shadow-lg, 2px lift (160ms); selected card uses the same brand-300 border. Dark assets-tab !important border dropped; embedded entity-popover preview stays flat. Both themes.
Entity summary Title pill (EntityTitleSection) → dark bg-secondary; .overview-value raw gray-900 → --om-color-text-primary.
antd popover edge + tree Dark .ant-popover-inner gets the core Popover edge (1px border-secondary_alt outline, radius-xl); a Tree inside a popover goes transparent. Overlay backgrounds use this PR's bg-overlay-surface token (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

…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]>
@shah-harshit shah-harshit added the UI UI specific issues label Sep 23, 2026
@shah-harshit shah-harshit added the safe to test Add this label to run secure Github workflows on PRs label Sep 23, 2026
@shah-harshit shah-harshit added the skip-pr-checks Bypass PR metadata validation check label Sep 23, 2026
@shah-harshit shah-harshit self-assigned this Sep 23, 2026
@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.

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
shah-harshit and others added 20 commits September 24, 2026 15:10
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.
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 66 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 66 warning(s) across 13 changed file(s).

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

@gitar-bot

gitar-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown
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 bg-primary to bg-surface for visual hierarchy. Secondary button hover now darkens instead of lightens in dark mode. No issues found.

✅ 1 closed
✅ Bug: Dark-mode hover now darkens secondary buttons instead of lightening

📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/base/buttons/button.tsx:92 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/base/buttons/button-utility.tsx:22-23
In dark mode, the resting background is now bg-surface (gray-800, #22262f). The hover and loading states still use tw:hover:bg-primary_hover / tw:data-loading:bg-primary_hover, and in dark mode that token is --alpha(white / 6%) (globals.css). Because it replaces the background rather than layering on top, hovering shows 6% white over the page colour #0c0e12, which is about #1a1c20 and darker than the button at rest. That reverses hover feedback for every core secondary button and ButtonUtility. Fix: use a hover token that is lighter than surface in dark mode (for example tw:dark:hover:bg-surface_hover, or a layered overlay), or keep a solid hover colour above gray-800.

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

@sonarqubecloud

Copy link
Copy Markdown

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