Skip to content

Commit 8a409a2

Browse files
committed
Use <header> for the header and <nav> for the navigation
1 parent 4f61f5e commit 8a409a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/templates/application.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{title "crates.io: Rust Package Registry" separator=' - ' prepend=true}}
44

55
<div local-class="application">
6-
<nav local-class="header">
6+
<header local-class="header">
77
<LinkTo @route="index" @tabindex="-1">
88
<img src="/assets/Cargo-Logo-Small.png" height="100" width="100" alt="Cargo Logo">
99
</LinkTo>
@@ -33,7 +33,7 @@
3333
<label for="cargo-desktop-search" local-class="search-label">Search</label>
3434
</form>
3535

36-
<div local-class='nav'>
36+
<nav local-class='nav'>
3737
<LinkTo @route="crates" @query={{hash letter=null page=1}} data-test-all-crates-link>
3838
Browse All Crates
3939
</LinkTo>
@@ -81,7 +81,7 @@
8181
Log in with GitHub
8282
</LinkTo>
8383
{{/if}}
84-
</div>
84+
</nav>
8585

8686
<div local-class='menu'>
8787
<Dropdown as |dd|>
@@ -101,7 +101,7 @@
101101
</dd.Menu>
102102
</Dropdown>
103103
</div>
104-
</nav>
104+
</header>
105105

106106
<form local-class='mobile-search' action='/search' {{ action "search" on="submit" }} >
107107
<input

0 commit comments

Comments
 (0)