Seeing something weird when trying to define the "...
# compose-web
d
Seeing something weird when trying to define the "after" psuedo-element (code in thread) Edit: Solved, feel free to ignore
I'm trying to specify after content (as in https://developer.mozilla.org/en-US/docs/Web/CSS/::after) Here, in a
StyleSheet
init block, I have something like this
Copy code
".after-style::after" style {
      color(Color.red)
      property("content", "  ?  ")
   }
The "color" is showing up in the final DOM tree but content is not
Resulting in this:
When I manually enter
content: "  ?  "
in the browser's dev tools, it sticks
Is this user error? Am I misunderstanding something?
Oh, wait, I think I got it. I have to pass in an explicit string value, as in
Copy code
property("content", "\"  ?  \"")
OK yeah, that was it. Thanks for letting me rubber duck that with you all 🙃
👍 2