Commit 2f24f3a
docs(ui-top-nav-bar): fix runtime crash in v2 "Full width dialog" example
The in-place search dialog example passed its shared-token override through the
`theme` prop, which deep-merges straight into the theme and replaced the
`sharedTokens` function with a plain object. When the TextInput computed its
style it called `theme.newTheme.sharedTokens?.(semantics)` and threw
"theme.newTheme.sharedTokens is not a function".
Pass the override via the `themeOverride` prop instead. It is applied separately
and deep-merged into the result of `sharedTokens(semantics)`, leaving the
function intact. Matches the InstUISettingsProvider JSDoc and the Link v2 README.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7c67546 commit 2f24f3a
1 file changed
Lines changed: 5 additions & 8 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2137 | 2137 | | |
2138 | 2138 | | |
2139 | 2139 | | |
2140 | | - | |
2141 | | - | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
2146 | | - | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
2147 | 2144 | | |
2148 | 2145 | | |
2149 | | - | |
| 2146 | + | |
2150 | 2147 | | |
2151 | 2148 | | |
2152 | 2149 | | |
| |||
0 commit comments