Skip to content

Commit af01272

Browse files
authored
Update 0000-style-directives.md
1 parent 8dbc444 commit af01272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-style-directives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ It would be useful — and often less error-prone — to be able to set multiple
3535
```svelte
3636
<div
3737
style:position="absolute"
38-
style:top={position === "absolute" && "20px"}
38+
style:top={position === "absolute" ? "20px" : null}
3939
style:pointer-events={pointerEvents ? null : "none"}
4040
/>
4141
```

0 commit comments

Comments
 (0)