From 2aa501801a599e46730bb4bb80f83d87758488df Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 22 Mar 2023 11:11:45 -0400 Subject: [PATCH] tweaks --- .../03-dynamic-attributes/README.md | 2 +- .../05-nested-components/README.md | 2 +- .../01-reactive-assignments/README.md | 3 +++ .../03-reactive-statements/README.md | 2 +- .../04-updating-arrays-and-objects/README.md | 2 +- .../03-props/03-spread-props/README.md | 18 ++++++++++++++++-- .../03-spread-props/app-a/src/lib/App.svelte | 3 +-- .../app-a/src/lib/PackageInfo.svelte | 6 ++---- .../03-spread-props/app-b/src/lib/App.svelte | 2 +- 9 files changed, 27 insertions(+), 13 deletions(-) diff --git a/content/tutorial/01-svelte/01-introduction/03-dynamic-attributes/README.md b/content/tutorial/01-svelte/01-introduction/03-dynamic-attributes/README.md index 2f049885b..e03524b1a 100644 --- a/content/tutorial/01-svelte/01-introduction/03-dynamic-attributes/README.md +++ b/content/tutorial/01-svelte/01-introduction/03-dynamic-attributes/README.md @@ -11,7 +11,7 @@ Our image is missing a `src` — let's add one: ``` -That's better. But Svelte is giving us a warning: +That's better. But if you hover over the `` in the editor, Svelte is giving us a warning: > A11y: <img> element should have an alt attribute diff --git a/content/tutorial/01-svelte/01-introduction/05-nested-components/README.md b/content/tutorial/01-svelte/01-introduction/05-nested-components/README.md index c031ce63b..ee310890b 100644 --- a/content/tutorial/01-svelte/01-introduction/05-nested-components/README.md +++ b/content/tutorial/01-svelte/01-introduction/05-nested-components/README.md @@ -4,7 +4,7 @@ title: Nested components It would be impractical to put your entire app in a single component. Instead, we can import components from other files and include them in our markup. -Add a ` diff --git a/content/tutorial/01-svelte/03-props/03-spread-props/app-a/src/lib/PackageInfo.svelte b/content/tutorial/01-svelte/03-props/03-spread-props/app-a/src/lib/PackageInfo.svelte index 7148fffd9..51a30b8fa 100644 --- a/content/tutorial/01-svelte/03-props/03-spread-props/app-a/src/lib/PackageInfo.svelte +++ b/content/tutorial/01-svelte/03-props/03-spread-props/app-a/src/lib/PackageInfo.svelte @@ -8,8 +8,6 @@

- The {name} package is {speed} fast. Download version {version} - from - npm - and learn more here + The {name} package is {speed} fast. Download version {version} from + npm and learn more here

diff --git a/content/tutorial/01-svelte/03-props/03-spread-props/app-b/src/lib/App.svelte b/content/tutorial/01-svelte/03-props/03-spread-props/app-b/src/lib/App.svelte index 69420ba6a..5934bdabf 100644 --- a/content/tutorial/01-svelte/03-props/03-spread-props/app-b/src/lib/App.svelte +++ b/content/tutorial/01-svelte/03-props/03-spread-props/app-b/src/lib/App.svelte @@ -3,8 +3,8 @@ const pkg = { name: 'svelte', + speed: 'blazing', version: 3, - speed: 'blazingly', website: 'https://svelte.dev' };