From cf98bb8ae7f0126345562918987d7f0d5a9429e5 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Tue, 26 Nov 2024 21:39:24 +0900 Subject: [PATCH] Fix: Limit `rules`'s prop expression --- text/002-css-rules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/002-css-rules.md b/text/002-css-rules.md index 07ec905..1a3958b 100644 --- a/text/002-css-rules.md +++ b/text/002-css-rules.md @@ -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"] }}] }); ``` @@ -468,7 +468,7 @@ const myRule = rules({ props: [ "color", { - background: { base: "red" }, + background: { base: "red", targets: ["background"] }, size: { base: "3px", targets: ["padding", "margin"] } } ]