Hello,
I'm trying to set the title and description sizes of questions and panels equal to the one of pages. I wasn't successful using model.css
. I then tested the model.onUpdateQuestionCssClasses
callback for another issue and noticed that suddenly the changes were applied.
I know the following isn't reproducible for you but since I technically solved the issue at the moment I can't invest the time to create an MWE in codesandbox. Still, I wanted to bring this to your attention, maybe you can figure out something from the attached screenshots.
A bit of context: The customizers
are an array of customizer functions applied to the model after its' creation. The "Mehrfachauswahl" on the right side is a description of a checkbox question. The nested loops include an iteration where model.css["question"]["description"] = model.css["page"]["description"]
is executed. The line 136
is the only thing that I am changing in between screenshots. I can also register the callbacks in lines 137
or 138
instead to achieve the same effect.
I'd appreciate your thoughts on this beahvior.
Thanks
Lucas