docs: fix style directive with important modifier example (#8802)

pull/8819/head
Cesar Napoleon Mejia Leiva 1 year ago committed by GitHub
parent a29feeca25
commit a83e438b5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -381,7 +381,7 @@ The `style:` directive provides a shorthand for setting multiple styles on an el
<div style:color style:width="12rem" style:background-color={darkMode ? 'black' : 'white'}>...</div>
<!-- Styles can be marked as important -->
<div style:color="red">...</div>
<div style:color|important="red">...</div>
```
When `style:` directives are combined with `style` attributes, the directives will take precedence:

Loading…
Cancel
Save