Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style of the open calendar button #147

Open
BartokIT opened this issue Dec 28, 2021 · 1 comment
Open

Style of the open calendar button #147

BartokIT opened this issue Dec 28, 2021 · 1 comment

Comments

@BartokIT
Copy link

Hi,
thanks for this awesome component.

I'm trying to stylize the button to open the calendar without success: the theme support you added change only the calendar itself or it is possible to pass a custom button definition as slot to open the calendar?

KR

@6eDesign
Copy link
Owner

The theming can be used to style the background and text color of the default button/trigger for opening the calendar (it shares these css variables with the calendar). I could potentially add additional theming variables/capabilities for the button and document this better in the theme editor.

However it is also possible to pass your own button/trigger as a slot. There is an example of this on the github-pages documentation site ("custom trigger") but it basically looks like this: https://svelte.dev/repl/a7a20f473ed449aa82a37c280016cc18?version=3.44.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants