Skip to content

Commit

Permalink
Fix typo and add missing link (mdn#29115)
Browse files Browse the repository at this point in the history
* Fix typo and add missing link

* Update files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/svelte_todo_list_beginning/index.md

---------

Co-authored-by: Estelle Weyl <[email protected]>
  • Loading branch information
aditiintechk and estelle authored Sep 14, 2023
1 parent 9042d42 commit 8be0eef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ Further down, you can find the following `<ul>` element:
```svelte
<ul
role="list"
className="todo-list stack-large"
class="todo-list stack-large"
aria-labelledby="list-heading">
```

The `role` attribute helps assistive technology explain what kind of semantic value an element has — or what its purpose is. A `<ul>` is treated like a list by default, but the styles we're about to add will break that functionality. This role will restore the "list" meaning to the `<ul>` element. If you want to learn more about why this is necessary, you can check out Scott O'Hara's article "Fixing Lists".
The `role` attribute helps assistive technology explain what kind of semantic value an element has — or what its purpose is. A `<ul>` is treated like a list by default, but the styles we're about to add will break that functionality. This role will restore the "list" meaning to the `<ul>` element. If you want to learn more about why this is necessary, you can check out Scott O'Hara's article ["Fixing Lists"](https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html) (2019).

The `aria-labelledby` attribute tells assistive technologies that we're treating our `<h2>` with an `id` of `list-heading` as the label that describes the purpose of the list beneath it. Making this association gives the list a more informative context, which could help screen reader users better understand the purpose of it.

Expand Down

0 comments on commit 8be0eef

Please sign in to comment.