Skip to content

fix(dataset): keep form panels in sync with the theme - #46595

Open
dmunozv04 wants to merge 1 commit into
apache:masterfrom
dmunozv04:fix-dataset-editor-theme
Open

dmunozv04 wants to merge 1 commit into
apache:masterfrom
dmunozv04:fix-dataset-editor-theme

Conversation

@dmunozv04

Copy link
Copy Markdown
Contributor

SUMMARY

The dataset editor form panels could keep the previous theme’s background after a theme change. For example, switching to dark mode could leave the Settings panels white while their labels and inputs switched to dark mode.

This PR fixes it by reading colorBgLayout from the active theme with useTheme().

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE:

before.mp4

AFTER:

after.mp4

TESTING INSTRUCTIONS

  1. Select the System theme in Superset
  2. Edit a dataset and go to its Settings tag
  3. With the editor still open, switch the system color scheme from dark to light and back
  4. Verify that both Settings panels follow the theme

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

I found this issue while taking screenshots for #46591

@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟢  Low Risk

  • The PR appears safe to merge; no actionable issues were identified in the review.

Assessed commit: 9dca17d0e133

@dmunozv04
dmunozv04 force-pushed the fix-dataset-editor-theme branch from 8a0a2d0 to 9dca17d Compare November 28, 2026 10:33
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.42%. Comparing base (a6662b6) to head (9dca17d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #46595      +/-   ##
==========================================
- Coverage   86.42%   86.42%   -0.01%     
==========================================
  Files        3183     3183              
  Lines      222606   222607       +1     
  Branches    52996    52996              
==========================================
  Hits       192378   192378              
- Misses      26758    26759       +1     
  Partials     3470     3470              
Flag Coverage Δ
javascript 83.41% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant