Angular-calendar: Custom cssClass is missing on allDay events in day-view

Created on 10 Oct 2018  路  2Comments  路  Source: mattlewis92/angular-calendar

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
bug help wanted

Most helpful comment

Released in 0.26.2, thanks for your contribution! 馃帀

All 2 comments

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 馃槃

Released in 0.26.2, thanks for your contribution! 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Novabllast picture Novabllast  路  3Comments

agilob picture agilob  路  3Comments

oldschoolbg picture oldschoolbg  路  4Comments

no-more picture no-more  路  3Comments

fmoessle picture fmoessle  路  5Comments