I need to create a grid background on a component, and am struggling to get multiple linear gradients working in the backgroundImage
prop.
I need to turn this:
body {
background-size: 40px 40px;
background-image:
linear-gradient(to right, grey 1px, transparent 1px),
linear-gradient(to bottom, grey 1px, transparent 1px);
}
into this:
backgroundSize: 40px 40px;
backgroundImage: linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px);
But it doesn’t like the take the second gradient, just the first one. Any ideas? Note, weird little perspective pseudo-css things like this make me wish it was a lot easier to go into “advanced mode” on a style class and just type regular CSS in without having to go into theming. Makes it a little bit harder to mock things up.