Skip to content

Commit b16e367

Browse files
committed
more
1 parent 0979236 commit b16e367

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

apps/svelte.dev/content/tutorial/02-advanced-svelte/07-special-elements/04-svelte-body/+assets/app-a/src/lib/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<!-- creative commons BY-NC http://www.pngall.com/kitten-png/download/7247 -->
1010
<img
11-
class:curious={hereKitty}
11+
class={{ curious: hereKitty }}
1212
alt="Kitten wants to know what's going on"
1313
src={kitten}
1414
/>

apps/svelte.dev/content/tutorial/02-advanced-svelte/07-special-elements/04-svelte-body/+assets/app-b/src/lib/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<!-- creative commons BY-NC http://www.pngall.com/kitten-png/download/7247 -->
1313
<img
14-
class:curious={hereKitty}
14+
class={{ curious: hereKitty }}
1515
alt="Kitten wants to know what's going on"
1616
src={kitten}
1717
/>

apps/svelte.dev/content/tutorial/02-advanced-svelte/xx-currently-unused/01-svelte-self/+assets/app-a/src/lib/Folder.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
</script>
1010

11-
<button class:expanded onclick={toggle}>{name}</button>
11+
<button class={{ expanded }} onclick={toggle}>{name}</button>
1212

1313
{#if expanded}
1414
<ul>

apps/svelte.dev/content/tutorial/02-advanced-svelte/xx-currently-unused/01-svelte-self/+assets/app-b/src/lib/Folder.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
</script>
1111

12-
<button class:expanded onclick={toggle}>{name}</button>
12+
<button class={{ expanded }} onclick={toggle}>{name}</button>
1313

1414
{#if expanded}
1515
<ul>

apps/svelte.dev/content/tutorial/04-advanced-sveltekit/05-advanced-loading/01-universal-load-functions/+assets/app-a/src/routes/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</script>
66

77
<nav
8-
class:has-color={!!page.data.color}
8+
class={[page.data.color && 'has-color']}
99
style:background={page.data.color ?? 'var(--bg-2)'}
1010
>
1111
<a href="/">home</a>
@@ -21,4 +21,4 @@
2121
nav.has-color a {
2222
color: white;
2323
}
24-
</style>
24+
</style>

apps/svelte.dev/content/tutorial/04-advanced-sveltekit/05-advanced-loading/01-universal-load-functions/+assets/app-b/src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</script>
66

77
<nav
8-
class:has-color={!!page.data.color}
8+
class={[page.data.color && 'has-color']}
99
style:background={page.data.color ?? 'var(--bg-2)'}
1010
>
1111
<a href="/">home</a>

apps/svelte.dev/content/tutorial/04-advanced-sveltekit/05-advanced-loading/01-universal-load-functions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We can now use the `component` returned from these `load` functions like any oth
2020
```svelte
2121
/// file: src/routes/+layout.svelte
2222
<nav
23-
class:has-color={!!page.data.color}
23+
class={[page.data.color && 'has-color']}
2424
style:background={page.data.color ?? 'var(--bg-2)'}
2525
>
2626
<a href="/">home</a>

0 commit comments

Comments
 (0)