Skip to content

Commit daa1b17

Browse files
author
vired
authored
use <main> instead of a div with a id #main-content (#1079)
* use <main> instead of a div with a class main-content * update for using <main>
1 parent 93703e0 commit daa1b17

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/styles/app.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ body {
3232
min-height: 100vh;
3333
display: flex;
3434
flex-direction: column;
35-
& > #main-content {
35+
& > main {
3636
flex: 1;
3737
}
3838
}

templates/components/layout.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
</head>
6060
<body>
6161
{{> components/nav}}
62-
<div id="main-content">
62+
<main>
6363
{{~> page}}
64-
</div>
64+
</main>
6565
{{> components/footer}}
6666
{{#if pontoon_enabled}}
6767
<script src="https://pontoon.rust-lang.org/pontoon.js"></script>

0 commit comments

Comments
 (0)