Repository navigation
fix(theme): xdsClassName for TimeInput and Tooltip, fix hardcoded fontSize - #749
Merged
Merged
Conversation
…fontSize in Tooltip
Theme audit batch for 2026-03-20:
- TimeInput: Add xdsClassName('time-input', {size}) on wrapper div for
theme targeting, matching TextInput's pattern
- Tooltip: Replace hardcoded fontSize: 14 with textSizeVars['--text-base']
- Tooltip: Add xdsClassName('tooltip') on content div for theme targeting,
matching HoverCard and Popover patterns
Audited: TextInput (clean), TimeInput, Token (clean), Tokenizer (skipped —
composition wrapping themed components), Tooltip
Co-authored-by: Navi <[email protected]>
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsLayer · View in Storybook
TimeInput · View in Storybook
Tooltip · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
commented
Mar 20, 2026
The main visual styles (background, border-radius, typography) live on
the container div, so xdsClassName('tooltip') belongs there for proper
theme targeting via @scope.
Added className support to ContextRenderProps in useXDSLayer so any
layer consumer can attach xdsClassName to the popover container.
Co-authored-by: Navi <[email protected]>
Contributor
Author
|
Fixed in 3403d0b — moved |
Both ContextRenderProps and FixedRenderProps now accept all three props (xstyle, className, style) for consistent container customization. Previously FixedRenderProps only had x/y and ContextRenderProps was missing style. Co-authored-by: Navi <[email protected]>
cixzhang
added a commit
that referenced
this pull request
Apr 26, 2026
…tSize (#749) * fix(theme): add xdsClassName to TimeInput and Tooltip, fix hardcoded fontSize in Tooltip Theme audit batch for 2026-03-20: - TimeInput: Add xdsClassName('time-input', {size}) on wrapper div for theme targeting, matching TextInput's pattern - Tooltip: Replace hardcoded fontSize: 14 with textSizeVars['--text-base'] - Tooltip: Add xdsClassName('tooltip') on content div for theme targeting, matching HoverCard and Popover patterns Audited: TextInput (clean), TimeInput, Token (clean), Tokenizer (skipped — composition wrapping themed components), Tooltip Co-authored-by: Navi <[email protected]> * fix(theme): move xdsClassName to container for Tooltip The main visual styles (background, border-radius, typography) live on the container div, so xdsClassName('tooltip') belongs there for proper theme targeting via @scope. Added className support to ContextRenderProps in useXDSLayer so any layer consumer can attach xdsClassName to the popover container. Co-authored-by: Navi <[email protected]> * feat(layer): support style, className, xstyle on both render modes Both ContextRenderProps and FixedRenderProps now accept all three props (xstyle, className, style) for consistent container customization. Previously FixedRenderProps only had x/y and ContextRenderProps was missing style. Co-authored-by: Navi <[email protected]> --------- Co-authored-by: Navi <[email protected]>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
…tSize (#749) * fix(theme): add xdsClassName to TimeInput and Tooltip, fix hardcoded fontSize in Tooltip Theme audit batch for 2026-03-20: - TimeInput: Add xdsClassName('time-input', {size}) on wrapper div for theme targeting, matching TextInput's pattern - Tooltip: Replace hardcoded fontSize: 14 with textSizeVars['--text-base'] - Tooltip: Add xdsClassName('tooltip') on content div for theme targeting, matching HoverCard and Popover patterns Audited: TextInput (clean), TimeInput, Token (clean), Tokenizer (skipped — composition wrapping themed components), Tooltip Co-authored-by: Navi <[email protected]> * fix(theme): move xdsClassName to container for Tooltip The main visual styles (background, border-radius, typography) live on the container div, so xdsClassName('tooltip') belongs there for proper theme targeting via @scope. Added className support to ContextRenderProps in useXDSLayer so any layer consumer can attach xdsClassName to the popover container. Co-authored-by: Navi <[email protected]> * feat(layer): support style, className, xstyle on both render modes Both ContextRenderProps and FixedRenderProps now accept all three props (xstyle, className, style) for consistent container customization. Previously FixedRenderProps only had x/y and ContextRenderProps was missing style. Co-authored-by: Navi <[email protected]> --------- Co-authored-by: Navi <[email protected]>
cixzhang
added a commit
that referenced
this pull request
Jun 21, 2026
…tSize (#749) * fix(theme): add xdsClassName to TimeInput and Tooltip, fix hardcoded fontSize in Tooltip Theme audit batch for 2026-03-20: - TimeInput: Add xdsClassName('time-input', {size}) on wrapper div for theme targeting, matching TextInput's pattern - Tooltip: Replace hardcoded fontSize: 14 with textSizeVars['--text-base'] - Tooltip: Add xdsClassName('tooltip') on content div for theme targeting, matching HoverCard and Popover patterns Audited: TextInput (clean), TimeInput, Token (clean), Tokenizer (skipped — composition wrapping themed components), Tooltip * fix(theme): move xdsClassName to container for Tooltip The main visual styles (background, border-radius, typography) live on the container div, so xdsClassName('tooltip') belongs there for proper theme targeting via @scope. Added className support to ContextRenderProps in useXDSLayer so any layer consumer can attach xdsClassName to the popover container. * feat(layer): support style, className, xstyle on both render modes Both ContextRenderProps and FixedRenderProps now accept all three props (xstyle, className, style) for consistent container customization. Previously FixedRenderProps only had x/y and ContextRenderProps was missing style. ---------
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.
Theme Audit — 2026-03-20 (batch run)
Audited 5 components: TextInput, TimeInput, Token, Tokenizer, Tooltip.
Fixes
TimeInput — missing xdsClassName
xdsClassName('time-input', {size})on the wrapper div usingmergeProps, matching the pattern in TextInput.@scope.Tooltip — hardcoded fontSize
fontSize: 14withtextSizeVars['--text-base']in the tooltip container styles.--text-basetoken (0.875rem), so no visual change — but now it respects theme overrides.Tooltip — missing xdsClassName
xdsClassName('tooltip')on the content div viamergeProps, matching the pattern in HoverCard (xdsClassName('hovercard')) and Popover (xdsClassName('popover')).Clean (no issues)
Skipped
Needs Review
None — all fixes are straightforward objective issues.