Skip to content

Commit 790465c

Browse files
committed
Merge branch 'main' into fix-focus
2 parents 53748b7 + a135717 commit 790465c

File tree

3 files changed

+4
-4
lines changed
  • content/tutorial
    • 01-svelte/01-introduction/03-dynamic-attributes
    • 02-sveltekit

3 files changed

+4
-4
lines changed

content/tutorial/01-svelte/01-introduction/03-dynamic-attributes/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ When building web apps, it's important to make sure that they're _accessible_ to
1919
In this case, we're missing the `alt` attribute that describes the image for people using screenreaders, or people with slow or flaky internet connections that can't download the image. Let's add one:
2020

2121
```svelte
22-
<img src={src} +++alt="A man dances."+++>
22+
<img src={src} +++alt="A man dances."+++ />
2323
```
2424

2525
We can use curly braces _inside_ attributes. Try changing it to `"{name} dances."` — remember to declare a `name` variable in the `<script>` block.
@@ -29,5 +29,5 @@ We can use curly braces _inside_ attributes. Try changing it to `"{name} dances.
2929
It's not uncommon to have an attribute where the name and value are the same, like `src={src}`. Svelte gives us a convenient shorthand for these cases:
3030

3131
```svelte
32-
<img +++{src}+++ alt="A man dances.">
32+
<img +++{src}+++ alt="A man dances." />
3333
```

content/tutorial/02-sveltekit/01-concepts/01-introducing-sveltekit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ SvelteKit is a framework for building extremely high-performance web apps. Where
1818

1919
SvelteKit apps are server-rendered by default (like traditional 'multi-page apps' or MPAs) for excellent first load performance and SEO characteristics, but can then transition to client-side navigation (like modern 'single-page apps' or SPAs) to avoid jankily reloading everything (including things like third-party analytics code) when the user navigates. They can run anywhere JavaScript runs, though — as we'll see — your users may not need to run any JavaScript at all.
2020

21-
If that sounds complicated, worry not: SvelteKit is the framework that grows with you! Start simple and add new features as they come. This tutorial will go over the core concepts, while the [Advanced SvelteKit](/handle) tutorial teaches you how to tackle more complex use cases.
21+
If that sounds complicated, worry not: SvelteKit is the framework that grows with you! Start simple and add new features as they come. This tutorial will go over the core concepts, while the [Advanced SvelteKit](/tutorial/handle) tutorial teaches you how to tackle more complex use cases.

content/tutorial/02-sveltekit/02-routing/02-layouts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ src/routes/
1717
...and move the duplicated content from the `+page.svelte` files into the new `+layout.svelte` file. The `<slot />` element is where the page content will be rendered:
1818

1919
```svelte
20-
/// file: src/routes/about/+layout.svelte
20+
/// file: src/routes/+layout.svelte
2121
<nav>
2222
<a href="/">home</a>
2323
<a href="/about">about</a>

0 commit comments

Comments
 (0)