Skip to content

ShellBar & setTheme #5113

Answered by Lukas742
Qcyk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Qcyk

Is it possible to add custom div to ShellBar component? ShellBarItem doesn't have possibility to add custom react element. We can add only icon.

Unfortunately this is not supported, only ShellBarItems should be passed as children.

setTheme doesn't cause re-render a children components in ThemeProvider. Method getTheme() is executed only once when component is rendering first time. Is it possible to force components that use getTheme() to re-render (without custom ThemeProvider)?

All children of the ThemeProvider should update their style if setTheme is called and the theme changes. If this is not the case in your app, then this sounds like a bug to me. Here you can find a bas…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Qcyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants