namespace-ee / react-calendar-timeline

A modern and responsive react timeline component.
MIT License
1.94k stars 634 forks source link

Injecting custom class names for vertical lines spanning over time period longer than day #730

Open RafikiTiki opened 4 years ago

RafikiTiki commented 4 years ago

Describe the bug If you want to style vertical lines spanning over time period longer than day providing custom class names then produced class name string is corrupted.

To Reproduce If I'll return timeline-month class from verticalLineClassNamesForTime function I'll end up with vertical line element: <div class="rct-vltimeline-month"> instead of <div class="rct-vl timeline-month">

Expected behavior Should concat class names as if I was styling vertical lines spanning over a day or shorter time period.

Library Version react-calendar-timeline@0.26.7

Desktop (please complete the following information):

Additional context Fix: https://github.com/namespace-ee/react-calendar-timeline/pull/729

juliocesaroliveira commented 4 years ago

+1

emanuelfs commented 4 years ago

+1

RafikiTiki commented 4 years ago

@juliocesaroliveira @emanuelfs before #729 gets merged you could use this dirty hack to fix the problem: https://github.com/namespace-ee/react-calendar-timeline/pull/729#issuecomment-600620473