Skip to content

Commit

Permalink
make the top bar a header element
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragnar-Oock committed Mar 29, 2021
1 parent 255342d commit f0ada67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
class="app"
>
<WelcomeScreen @visible="onWelcomeScreenVisiblityChange" />
<TopBar :is-search-bar-docked="isSearchBarDocked" />
<main>
<TopBar :is-search-bar-docked="isSearchBarDocked" />

<RulesPage
v-if="!isLastRuleVersionAccepted"
:show="!isWelcomeScreenVisible"
Expand Down
6 changes: 3 additions & 3 deletions src/components/TopBar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div
<header
class="top-bar"
:class="{'docked': isSearchBarDocked}"
>
Expand Down Expand Up @@ -76,7 +76,7 @@
<span class="sr-only">{{ $t('topBar.darkMode') }}</span>
</label>
</div>
</div>
</header>
</template>

<script lang="js">
Expand Down Expand Up @@ -152,7 +152,7 @@ export default {
gap: .25em;
transition: opacity 300ms ease-in-out;
@media screen and (max-width: 67.3em) {
@media screen and (max-width: 68em) {
@at-root .docked & {
opacity: 0;
}
Expand Down

0 comments on commit f0ada67

Please sign in to comment.