snaha / diete.design

https://diete.design
MIT License
0 stars 0 forks source link

Date input menu button is defined in +layout.svelte #347

Closed agazso closed 2 weeks ago

agazso commented 2 months ago

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.