Yes it should. Please attach a runnable test case that we could debug, it will allow us to help you faster.
Re: [REACT] Custom date icon
Posted: Tue Mar 28, 2023 6:28 am
by rodel.ocfemia
Hi,
Please find attached.
Re: [REACT] Custom date icon
Posted: Tue Mar 28, 2023 8:48 am
by tasnim
Hi,
The selector was not applying correctly because of the version that you're using 5.2.10
If you upgrade to 5.3.1 it will work just fine. And you can still make the color apply by setting !important after the color name
Hi, try this and do not forget to size your background image
.myTask.b-gantt-task.b-milestone .b-gantt-task-content {
background: orange !important;
background-image: url(AtRisk.svg);
background-size: 15px 15px; // for example, use your own numbers
background-repeat: no-repeat;
background-position: center;
}
Re: [REACT] Custom date icon
Posted: Fri Mar 31, 2023 12:02 pm
by rodel.ocfemia
Hi,
It works but the image has been rotated.
Capture.PNG (11.18 KiB) Viewed 205 times
I tried adding transform rotate property but the whole icon is gone.