Skip to content

Commit

Permalink
Fix: Limit rules's prop expression
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Nov 26, 2024
1 parent 55ab16a commit cf98bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text/002-css-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ You may also need aliased.

```typescript
const myRule = rules({
props: ["color", "background", { size: ["padding", "margin"] }]
props: ["color", "background", { size: { targets: ["padding", "margin"] }}]
});
```

Expand All @@ -468,7 +468,7 @@ const myRule = rules({
props: [
"color",
{
background: { base: "red" },
background: { base: "red", targets: ["background"] },
size: { base: "3px", targets: ["padding", "margin"] }
}
]
Expand Down

0 comments on commit cf98bb8

Please sign in to comment.