Bug? script changes colours correctly in designer preview but not on web page

Your green color includes the #, the grey color does not. Generally when a color is not recognized it will default to black.

These lines should be

	self.parent.parent.getChild("FPS03").getChild("Icon").props.color = "#A5A5A5"

I would also strongly suggest using theme variables for your colors, as opposed to hard coding them. So if you ever decide to change them you will only need to change it in one place.

Some more on that here:

1 Like