The .menu-button-container and .dark-mode-button-container CSS and HTML that is a dependency of the DateInput component is defined in the +layout.svelte file. This makes it difficult to use in other projects.
If I understand correctly this is is done this way so that opening a date input popup automatically closes the theme color picker. It would be better if this were done at a different level (e.g. in a store or in the layout) and not in the DateInput component.
The
.menu-button-container
and.dark-mode-button-container
CSS and HTML that is a dependency of theDateInput
component is defined in the+layout.svelte
file. This makes it difficult to use in other projects.If I understand correctly this is is done this way so that opening a date input popup automatically closes the theme color picker. It would be better if this were done at a different level (e.g. in a store or in the layout) and not in the
DateInput
component.