Skip to content

Commit a83e438

Browse files
authored
docs: fix style directive with important modifier example (#8802)
1 parent a29feec commit a83e438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/02-template-syntax/05-element-directives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ The `style:` directive provides a shorthand for setting multiple styles on an el
381381
<div style:color style:width="12rem" style:background-color={darkMode ? 'black' : 'white'}>...</div>
382382
383383
<!-- Styles can be marked as important -->
384-
<div style:color="red">...</div>
384+
<div style:color|important="red">...</div>
385385
```
386386

387387
When `style:` directives are combined with `style` attributes, the directives will take precedence:

0 commit comments

Comments
 (0)