eui
eui copied to clipboard
[Docs] Codesandbox environments aren't quite correct for legacy theme
I know the legacy theme is on it's way out, so solving this issue is more dependent on how much effort it would require.
But it looks like the hook useEuiTheme() will always return the Amsterdam theme even if no EuiProvider is wrapping the applicaiton. The creates a contradiction when using the codesandbox links originating while the legacy theme is selected and using that hook.
Example:

That screenshot originates from the updated example in this PR: #5623
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.