Skip to content

Commit

Permalink
test: add broken test of using no-unused-css-selector rule with compo…
Browse files Browse the repository at this point in the history
…nent elements
  • Loading branch information
azat-io committed Sep 2, 2023
1 parent 08153d4 commit 8065385
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
let { tag = 'p' } = Astro.props
let Tag = tag
const baz = false
---

<Tag class:list={[
"foo",
{
"bar": baz,
"quz": !baz,
}
]}></Tag>

<style>
.foo {
height: 10px;
width: 10px;
}

.bar {
color: red;
}

.quz {
color: blue;
}
</style>

0 comments on commit 8065385

Please sign in to comment.