-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme overrides are not applied with missing optional base values #1284
Comments
@nickofthyme I think I'm following. The issue I'm facing is that I'm not able to get this theme override to work without setting up the tooltip prop in the https://codesandbox.io/embed/ancient-leftpad-9klp9?fontsize=14&hidenavigation=1&theme=dark |
I think in kibana to get the cursor to be crosshairs changing the TooltipProps to the following is showing: const tooltipProps: TooltipProps = tooltip.detailedTooltip
? {
...tooltip,
type: TooltipType.Crosshairs,
boundary,
customTooltip: tooltip.detailedTooltip(headerFormatter),
headerFormatter: undefined,
}
: { ...tooltip, boundary, headerFormatter }; |
Thanks for the zoom to clarify @nickofthyme 👍🏻 |
Fixed in #1410 by making |
🎉 This issue has been resolved in version 38.1.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
When using a theme override in certain circumstances the first values do NOT take precedence and revert to the
baseTheme
value.To Reproduce
Steps to reproduce the behavior:
Expected behaviour
In the example codesandbox above, I expect the
crosshair
value to be applied fromtheme2
but it is actually being applied from thebaseTheme
.Additional context
Likely related to the
mergeOptionalPartialValues
option on themergePartial
utility function.Related to https://github.com/elastic/kibana/pull/106845/files/039ca4ef1a815cc9d76c9ebbad3ce7a00be26115..ac3eb6a10fbe552743d7a9075c104a2c010ea043
The text was updated successfully, but these errors were encountered: