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

🐛 --datepicker-spacing not working #33

Open
fdebef opened this issue Aug 5, 2024 · 0 comments
Open

🐛 --datepicker-spacing not working #33

fdebef opened this issue Aug 5, 2024 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@fdebef
Copy link

fdebef commented Aug 5, 2024

Describe the bug
Changing --datepicker-spacing custom css variable does not work, calendar layout does not change.

To Reproduce
Try to use:

<style>
	:global(.datepicker[data-picker-theme='custom-datepicker']) {
		--datepicker-spacing: 3px;
		--datepicker-container-left: -400px;
		--datepicker-calendar-day-width: 26px;
		--datepicker-calendar-day-height: 26px;
		--datepicker-calendar-width: 240px;
		--datepicker-calendar-header-text-font-size: 0.9rem;
	}
</style>

All values are changed and calendar changes according to them except --datepicker-spacing. Even if this value is the only one I let in the custom them.

Expected behavior
The calendar padding should change according to calculated values.

When I try to change the value of --datepicker-spacing in browser inspection tools, it works. Both Safari and Chrome.

@fdebef fdebef added the Type: Bug Something isn't working label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant