From 78550c0d1c7037b17bdaa9413351b759b20772c0 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 13 Aug 2023 18:46:16 +0530 Subject: feat: adds conditionals --- tests/fixtures/todo-app/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/fixtures') diff --git a/tests/fixtures/todo-app/index.html b/tests/fixtures/todo-app/index.html index bbf0963..4dea1b4 100644 --- a/tests/fixtures/todo-app/index.html +++ b/tests/fixtures/todo-app/index.html @@ -31,10 +31,10 @@ [data-instance='task-item'] { --text: default text; - --checked: '0'; + --checked: false; --cssx-on-mount: set-attr('data-testid', attr(id)); - --cssx-on-click: update(--checked, '1'); + --cssx-on-click: update(--checked, if(var(--checked), false, true)); } [data-instance='task-item']::after { content: var(--text); -- cgit v1.3.1