Open C0ZEN opened 1 year ago
From the docs, the option classTarget will be passed to a querySelector() inside the iframe. Yet, when clicking the dark mode toggle button, it is affecting the first selector matching instead of the one inside the iframe.
querySelector()
Configuration:
export const parameters = { darkMode: { classTarget: 'html' } };
DOM example:
Due to this, the dark mode implementation of my components is not working.
Want to submit a pr to fix?
I have the same issue
From the docs, the option classTarget will be passed to a
querySelector()
inside the iframe. Yet, when clicking the dark mode toggle button, it is affecting the first selector matching instead of the one inside the iframe.Configuration:
DOM example:
Due to this, the dark mode implementation of my components is not working.