Hello,
I try to change the Jira’s global theme (dark/light) from my connect application when users presses the button. I use setGlobalTheme but it only changes inside my app and not outside of iframe in Jira itself.Anyone knows what can be a problem here? I have this code in my app.js file.
const theme = useThemeObserver();
const nextTheme = theme.colorMode === "dark" ? "light" : "dark";
const onClick = () =>
setGlobalTheme({
colorMode: nextTheme
});