CSS Classes
When moving HTML to a JDD component, make sure to keep the original classnames from the old website.
Additionally, add any classes assigned by JDD to the top element of the JDD component. So if in the old website it was
<div class="some-component"></div>
in JDD it has to be:
toHTML({
args: { title, imagesPerPage, images, speed, desktop_interval },
classes,
}: ComponentToHTMLArgs<typeof component_arguments>) {
return <div class={["some-component", ...classes]}></div>
Note the classes argument and the ...classes spread in the root element of the component