Skip to content

Commit 76d4580

Browse files
Changing hex codes to colour names to improve readability of the tutorial. (#5761)
1 parent 391455c commit 76d4580

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/App.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import Thing from './Thing.svelte';
33
44
let things = [
5-
{ id: 1, color: '#0d0887' },
6-
{ id: 2, color: '#6a00a8' },
7-
{ id: 3, color: '#b12a90' },
8-
{ id: 4, color: '#e16462' },
9-
{ id: 5, color: '#fca636' }
5+
{ id: 1, color: 'darkblue' },
6+
{ id: 2, color: 'indigo' },
7+
{ id: 3, color: 'deeppink' },
8+
{ id: 4, color: 'salmon' },
9+
{ id: 5, color: 'gold' }
1010
];
1111
1212
function handleClick() {
@@ -20,4 +20,4 @@
2020

2121
{#each things as thing}
2222
<Thing current={thing.color}/>
23-
{/each}
23+
{/each}

site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/App.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import Thing from './Thing.svelte';
33
44
let things = [
5-
{ id: 1, color: '#0d0887' },
6-
{ id: 2, color: '#6a00a8' },
7-
{ id: 3, color: '#b12a90' },
8-
{ id: 4, color: '#e16462' },
9-
{ id: 5, color: '#fca636' }
5+
{ id: 1, color: 'darkblue' },
6+
{ id: 2, color: 'indigo' },
7+
{ id: 3, color: 'deeppink' },
8+
{ id: 4, color: 'salmon' },
9+
{ id: 5, color: 'gold' }
1010
];
1111
1212
function handleClick() {
@@ -20,4 +20,4 @@
2020

2121
{#each things as thing (thing.id)}
2222
<Thing current={thing.color}/>
23-
{/each}
23+
{/each}

0 commit comments

Comments
 (0)