Expected Behavior: When you override the darkClass and lightClass at a story level, the classes set from the preview.js level are removed, and vice versa when leaving that story.
Actual Behavior: it will add the new classes defined in the story level parameters without removing the ones you set in preview.js. and then when you go back to a story where you are wanting to fall back to the default parameters it will leave the inherited ones on the classTarget element
Darkmode does not work with Parameter Inheritance.
see here for rules of parameter inheritance
Expected Behavior: When you override the darkClass and lightClass at a story level, the classes set from the preview.js level are removed, and vice versa when leaving that story.
Actual Behavior: it will add the new classes defined in the story level parameters without removing the ones you set in preview.js. and then when you go back to a story where you are wanting to fall back to the default parameters it will leave the inherited ones on the classTarget element