0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

I can't see pseudo-elements in Panda CSS. 疑似要素が見えない...

Last updated at Posted at 2023-12-10

Please enclose the 'content' element in quotation marks.

NG

function HelloWorld() {
  return (
    <div
      className={css({
        _before: {
          content: "Hello, world!" // <--- NG
        }
      })}
    ></div>
  )
}

You might encounter the bellow error message in a Developper tools in Chrome...

Determines which page-based occurrence of a given element is applied to a counter or string value.

OK

function HelloWorld() {
  return (
    <div
      className={css({
        _before: {
          content: '"Hello, world!"' // <--- OK
        }
      })}
    ></div>
  )
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?