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

Custom cssClass is missing on allDay events in day-view #769

Closed
CommonGuy opened this issue Oct 10, 2018 · 2 comments
Closed

Custom cssClass is missing on allDay events in day-view #769

CommonGuy opened this issue Oct 10, 2018 · 2 comments

Comments

@CommonGuy
Copy link
Contributor

Describe the bug

Custom css classes via cssClass work everywhere except if you create an all-day event in a day-view.

Minimal reproduction of the problem with instructions

https://stackblitz.com/edit/angular-15euhv?file=demo/component.ts

  1. Add a <mwl-calendar-day-view>
  2. Add an all-day event with cssClass: 'my-custom-event'
  3. Add .my-custom-event .cal-event { background-color: #FFF; } to the global scss file
  4. Styles don't get applied to all-day events.

Screenshots

Versions

  • @angular/core: 6.1.0
  • angular-calendar: 0.26.1
  • Browser name and version: Chrome 69
@mattlewis92
Copy link
Owner

Good catch! Would you like to make a pull request with the fix? You need to add [ngClass]="event.cssClass" under this line. Let me know if you need any more info 😄

@mattlewis92
Copy link
Owner

Released in 0.26.2, thanks for your contribution! 🎉

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

No branches or pull requests

2 participants