Skip to content

Commit 0480795

Browse files
authored
1 parent 5739153 commit 0480795

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

apps/svelte.dev/content/docs/svelte/03-template-syntax/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ The `{@const ...}` tag defines a local constant.
1111
{/each}
1212
```
1313

14-
`{@const}` is only allowed as an immediate child of a block — `{#if ...}`, `{#each ...}`, `{#snippet ...}` and so on — or a <Component />.
14+
`{@const}` is only allowed as an immediate child of a block — `{#if ...}`, `{#each ...}`, `{#snippet ...}` and so on — or a `<Component />`.

apps/svelte.dev/content/docs/svelte/04-styling/01-styles-and-classes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ Svelte's implementation is essentially syntactic sugar for adding a wrapper elem
194194
Desugars to this:
195195

196196
```svelte
197-
<div style="display: contents; --rail-color: black; --track-color: rgb(0, 0, 255)">
197+
<svelte-css-wrapper style="display: contents; --rail-color: black; --track-color: rgb(0, 0, 255)">
198198
<Slider bind:value min={0} max={100} />
199-
</div>
199+
</svelte-css-wrapper>
200200
```
201201

202202
For SVG namespace, the example above desugars into using `<g>` instead:
@@ -207,7 +207,7 @@ For SVG namespace, the example above desugars into using `<g>` instead:
207207
</g>
208208
```
209209

210-
> [!NOTE] Since this is an extra `<div>` (or `<g>`), beware that your CSS structure might accidentally target this. Be mindful of this added wrapper element when using this feature.
210+
> [!NOTE] Since this is an extra `<svelte-css-wrapper>` (or `<g>`), beware that your CSS structure might accidentally target this. Be mindful of this added wrapper element when using this feature.
211211
212212
Svelte's CSS Variables support allows for easily themeable components:
213213

apps/svelte.dev/content/docs/svelte/98-reference/.generated/client-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,5 @@ Reading state that was created inside the same derived is forbidden. Consider us
125125
### state_unsafe_mutation
126126

127127
```
128-
Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state`
128+
Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
129129
```

apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Reading state that was created inside the same derived is forbidden. Consider us
131131
### state_unsafe_mutation
132132

133133
```
134-
Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state`
134+
Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
135135
```
136136

137137

apps/svelte.dev/content/docs/svelte/98-reference/30-runtime-warnings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Reading state that was created inside the same derived is forbidden. Consider us
131131
### state_unsafe_mutation
132132

133133
```
134-
Updating state inside a derived or logic block expression is forbidden. If the value should not be reactive, declare it without `$state`
134+
Updating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`
135135
```
136136

137137

0 commit comments

Comments
 (0)