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

Make it possible to target expanded scheduler with CSS selectors #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Make it possible to target expanded scheduler with CSS selectors #52

wants to merge 1 commit into from

Conversation

denis-taran
Copy link

Currently it is not possible to apply a different style to the scheduler based on the state of the expand plugin via CSS selectors, because all changes are made by modifying style properties directly. This change will add dhx_scheduler_expanded class every time the scheduler is expanded and remove it, when the scheduler is collapsed. I didn't use the classList property, so it should work even with older browsers. After the change, scheduler styling can be modified via CSS selectors like this:

.dhx_scheduler_expanded .dhx_cal_date {
  font-size: 20px;
}

Currently it is not possible to apply a different style to the scheduler based on the state of the expand plugin via CSS selectors, because all changes are made by modifying style properties directly. This change will add `dhx_scheduler_expanded` class every time the scheduler is expanded and remove it, when the scheduler is collapsed. I didn't use the `classList` property, so it should work even with older browsers.
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

Successfully merging this pull request may close these issues.

1 participant