daybrush / ruler

A Ruler component that can draw grids and scroll infinitely.
https://daybrush.com/ruler/
MIT License
334 stars 39 forks source link

backgroundColor, textColor and lineColor have no effect #5

Closed oduvanka closed 4 years ago

oduvanka commented 4 years ago

Environments

Description

I have component Ruler I assign values to props "backgroundColor", "textColor" and "lineColor" - this is in my code and I pass props to template "rulers.component.html". In the browser, the ruler does not change color, there are no errors in the console. Why?

jesterstar commented 4 years ago

It`s a good question!

I have another problem. I have a few components with the different colors variant. One of them works fine, but in another component applied only backgroundColor property, it looks like lineColor and textColor does not applied.

daybrush commented 4 years ago

@oduvanka @jesterstar

I'll check it. Thank you :)

jesterstar commented 4 years ago

@daybrush FYI! How about an update to the latest version React lib? @scena/react-ruler As far as I can see here we have v.0.2.3 and in the react v.0.2.1

daybrush commented 4 years ago

@oduvanka Different frameworks have different versions. 2.3 is vanilla version. react version is 2.1.

jesterstar commented 4 years ago

@daybrus

@oduvanka Different frameworks have different versions. 2.3 is vanilla version. react version is 2.1.

Aha, okay, thanks a lot for your explanation!

daybrush commented 4 years ago

@oduvanka @jesterstar

ngx-ruler 0.3.0 is released.

Check it agian.

oduvanka commented 4 years ago

Ok! :)

Снимок