From 7419c1982a38be25abf2c50cddef101b9fbf5894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Sat, 3 Jul 2021 07:30:09 +0200 Subject: [PATCH] [DOC] tags: add missing information The example given in the tags page was misleading. closes #884 --- doc/reference/tags.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/reference/tags.md b/doc/reference/tags.md index 01aa73ce..f0be5bae 100644 --- a/doc/reference/tags.md +++ b/doc/reference/tags.md @@ -62,14 +62,14 @@ The CSS tag is useful to define a css stylesheet in the javascript file: ```js class MyComponent extends Component { - static template = xml` + static template = xml`
some template
`; - static css` - .my-component { - color: red; - } - `; + static style = css` + .my-component { + color: red; + } + `; } ```