You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When wrapping components with a @kiwicom/orbit-components/lib/ThemeProvider all children should use the language passed in the dictionary prop. This would be the same behavior which is already working for the theme prop.
Current Behavior
You have to directly wrap a component (e.g. a Wizard) in order for the dictionary to be applied.
The ThemeProvider works for the theme prop, so the solution probably lies somewhere in how the implementation of the dictionary prop differs from the theme prop.
Steps to Reproduce
try to pass the dictionary to a children component and see that it will default to English
<KiwiThemeProvidertheme={{orbit: customTokens,rtl: false,transitions: false,lockScrolling: false,}}dictionary={de_DE}><Component{...pageProps}/>//<-- dictionary should be passed to all components in here but isn't</KiwiThemeProvider>
Change something in your customTokens and see how the effect is applied to all children, unlike the language.
Expected Behavior
When wrapping components with a
@kiwicom/orbit-components/lib/ThemeProvider
all children should use the language passed in thedictionary
prop. This would be the same behavior which is already working for thetheme
prop.Current Behavior
You have to directly wrap a component (e.g. a Wizard) in order for the dictionary to be applied.
Possible Solution
The
ThemeProvider
works for thetheme
prop, so the solution probably lies somewhere in how the implementation of thedictionary
prop differs from the themeprop
.Steps to Reproduce
customTokens
and see how the effect is applied to all children, unlike the language.Context (Environment)
The text was updated successfully, but these errors were encountered: