Repository navigation
fix(explore): unify typography of panel titles and control values - #46105
Open
hadimobarra wants to merge 4 commits into
Open
hadimobarra wants to merge 4 commits into
hadimobarra wants to merge 4 commits into
Conversation
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]>
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
sadpandajoe
self-requested a review
November 10, 2026 18:05
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 themfontWeightStrongatfontSize, so every block title shares one style.ExploreViewContainer/index.tsx: "Chart Source" (.horizontal-text)ControlPanelsContainer.tsx: collapsible section header label2. 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, ...) usefontSize(14px). This PR movesOptionControlContainerandAddControlLabeltofontSize, so every control value reads at one size.controls/OptionControls/index.tsxThe pill height is fixed (
sizeUnit * 6), so the layout doesn't shift. Only theme tokens are used, no new custom values.Scope note:
OptionControlContaineris 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.Customize tab: "Chart Title" and "Chart Options" section headers now share the block-title weight.
TESTING INSTRUCTIONS
Automated:
OptionControls.test.tsxasserting the pill and placeholder usetheme.fontSize.npx jestpasses for the related Explore suites: ControlPanelsContainer, OptionControls, ExploreViewContainer, DndColumnSelectControl, MetricControl, AdhocFilterControl and FoldersEditor (32 suites, 409 tests).ADDITIONAL INFORMATION
🤖 Generated with Claude Code