ANovokmet / svelte-gantt

:calendar: Interactive JavaScript Gantt chart/resource booking component

Home Page:https://anovokmet.github.io/svelte-gantt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task background-color

morimasu3590 opened this issue · comments

Hello,
I'm currently trying to learn about initiate the svelte-gantt.
and I try to create a copy from the example that you have in /demo/src/route/tree.svelte and just do exactly the same configuration for the options, especially for tasks.

image.

It is set as "orange" on classes for example of the first three task example.

But I'm still got the default task background-color for that which is blue
image

Anything else that need to be configured to get the "orange" task background-color just like the example?

image

thank you for your time.

commented

Hello, can you confirm you have the .sg-task.orange properties in the gantt-default.css file and you are loading this file please ?
And can you also verify with the inspector that your tasks have the orange class successfully added ?
Like this :
image

It work after I load the gantt-default.css thank you.
image

So I need to load this file everytime when I want to use the default gantt css?
image

by the way thank you for the feedback

It work after I load the gantt-default.css thank you.