Skip to content

Commit

Permalink
keep <main> and set display: block in CSS for IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Jun 14, 2018
1 parent 2355410 commit 225d79b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/my-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ class MyApp extends connect(store)(LitElement) {
color: var(--app-drawer-selected-color);
}
/* Workaround for IE11 displaying <main> as inline */
main {
display: block;
}
.main-content {
padding-top: 64px;
min-height: 100vh;
Expand Down Expand Up @@ -201,12 +206,12 @@ class MyApp extends connect(store)(LitElement) {
</app-drawer>
<!-- Main content -->
<div role="main" class="main-content">
<main role="main" class="main-content">
<my-view1 class="page" active?="${_page === 'view1'}"></my-view1>
<my-view2 class="page" active?="${_page === 'view2'}"></my-view2>
<my-view3 class="page" active?="${_page === 'view3'}"></my-view3>
<my-view404 class="page" active?="${_page === 'view404'}"></my-view404>
</div>
</main>
<footer>
<p>Made with &hearts; by the Polymer team.</p>
Expand Down

0 comments on commit 225d79b

Please sign in to comment.