Skip to content

fix(explore): unify typography of panel titles and control values - #46105

Open
hadimobarra wants to merge 4 commits into
apache:masterfrom
hadimobarra:fix/issue-36670-explore-typography
Open

hadimobarra wants to merge 4 commits into
apache:masterfrom
hadimobarra:fix/issue-36670-explore-typography

Conversation

@hadimobarra

@hadimobarra hadimobarra commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

SUMMARY

Hi, I'm @hadimobarra. This PR addresses the typography inconsistencies in the Explore side panels described in #36670.

The issue's screenshots flag two problems:

1. Block titles that look almost, but not quite, the same. In the dataset panel, "Metrics" and "Columns" already use theme.fontWeightStrong, but "Chart Source" and the control panel section headers ("Query", "Options", "Chart Options", ...) use the regular weight. This PR gives all of them fontWeightStrong at fontSize, so every block title shares one style.

  • ExploreViewContainer/index.tsx: "Chart Source" (.horizontal-text)
  • ControlPanelsContainer.tsx: collapsible section header label

2. Control values rendered at two sizes. Selected-value pills (Metrics, Filters, Temporal X-Axis, Dimensions, ...) and their "Drop columns/metrics here or click" placeholder use fontSizeSM (12px), while Select and Input values (Time Grain, Aggregation Method, Comparison Period Lag, ...) use fontSize (14px). This PR moves OptionControlContainer and AddControlLabel to fontSize, so every control value reads at one size.

  • controls/OptionControls/index.tsx

The pill height is fixed (sizeUnit * 6), so the layout doesn't shift. Only theme tokens are used, no new custom values.

Scope note: OptionControlContainer is also reused by the dataset editor's Folders tree (FoldersEditor/TreeItem.tsx), which picks up the same 14px text. Its item height is a fixed constant, so the virtualized list's row math is unaffected.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Captured from a local build of this branch (light theme, "Trends" example chart). The "before" shots are the same build with the three changed files reverted to master.

Data tab: "Chart Source" and "Query" now match "Metrics"/"Columns", and pill values (ds, SUM(num), name) and the drop placeholders match the 14px "None" select.

Before After

Customize tab: "Chart Title" and "Chart Options" section headers now share the block-title weight.

Before After

TESTING INSTRUCTIONS

  1. Open any chart in Explore (e.g. a Line Chart).
  2. Left panel: "Chart Source", "Metrics" and "Columns" share the same weight.
  3. Data tab: "Query", "Options" and the other section headers use that same weight.
  4. Compare the text in a pill (Metrics, Filters, X-axis) with a Select (Time Grain) or Input (Comparison Period Lag): both are 14px.
  5. Repeat in dark mode and the Customize tab.

Automated:

  • Added tests in OptionControls.test.tsx asserting the pill and placeholder use theme.fontSize.
  • npx jest passes for the related Explore suites: ControlPanelsContainer, OptionControls, ExploreViewContainer, DndColumnSelectControl, MetricControl, AdhocFilterControl and FoldersEditor (32 suites, 409 tests).
  • oxfmt, oxlint, stylelint and the custom rules pass on the changed files.

ADDITIONAL INFORMATION

  • Has associated issue: Fixes Improve typography hierarchy and consistency in explore panel #36670
  • 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

🤖 Generated with Claude Code

Explore's side panels mixed type styles that read as almost, but not
quite, the same:

- Block titles: "Metrics" and "Columns" in the dataset panel used the
  strong font weight, while "Chart Source" and the control panel
  section headers ("Query", "Options", ...) used the regular weight.
- Control values: selected-value pills (metrics, filters, columns) and
  their "drop here" placeholder rendered at fontSizeSM (12px), while
  Select and Input values render at fontSize (14px).

Give every block title the strong weight and render the pills and
placeholder at the body font size. Pill height is fixed, so the layout
does not shift.

Fixes apache#36670

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@netlify

netlify Bot commented Nov 9, 2026

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 176e993
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6af18cee199b58d907774574
😎 Deploy Preview https://deploy-preview-46105--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Nov 9, 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: 15c2ae134b7f

@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.97%. Comparing base (de11628) to head (15c2ae1).
⚠️ Report is 9 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #46105   +/-   ##
=======================================
  Coverage   85.97%   85.97%           
=======================================
  Files        3128     3128           
  Lines      217773   217773           
  Branches    51629    51629           
=======================================
+ Hits       187230   187231    +1     
+ Misses      27119    27118    -1     
  Partials     3424     3424           
Flag Coverage Δ
javascript 82.79% <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.

@sadpandajoe
sadpandajoe self-requested a review November 10, 2026 18:05
@hadimobarra

Copy link
Copy Markdown
Contributor Author

Hi, just checking whether anyone has had a chance to look at this. Happy to make any changes. Thanks!

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.

Improve typography hierarchy and consistency in explore panel

3 participants