Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
- Incorrect indentation
- Remove notify not needed for title/description
  • Loading branch information
DiegoCardoso committed Dec 14, 2018
1 parent 7fc4fd4 commit 2af45c3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 39 deletions.
70 changes: 35 additions & 35 deletions src/vaadin-login-overlay-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,45 @@
<link rel="import" href="../../vaadin-overlay/src/vaadin-overlay.html">

<dom-module id="vaadin-login-overlay-element-template">
<template>
<template>
<style>
[part="overlay"] {
outline: none;
}
[part="overlay"] {
outline: none;
}

[part="card"] {
max-width: 100%;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex-direction: column;
}
[part="card"] {
max-width: 100%;
box-sizing: border-box;
overflow: hidden;
display: flex;
flex-direction: column;
}

[part="brand"] {
box-sizing: border-box;
overflow: hidden;
flex-grow: 1;
flex-shrink: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
[part="brand"] {
box-sizing: border-box;
overflow: hidden;
flex-grow: 1;
flex-shrink: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
}

[part="brand"] h1 {
color: inherit;
margin: 0;
}
</style>
<section part="card">
<div part="brand">
<h1>[[title]]</h1>
<p>[[description]]</p>
</div>
<div part="form">
<slot></slot>
</div>
</section>
</template>
[part="brand"] h1 {
color: inherit;
margin: 0;
}
</style>
<section part="card">
<div part="brand">
<h1>[[title]]</h1>
<p>[[description]]</p>
</div>
<div part="form">
<slot></slot>
</div>
</section>
</template>
<script>
(function() {
let memoizedTemplate;
Expand Down
6 changes: 2 additions & 4 deletions src/vaadin-login-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,14 @@
opened: {
type: Boolean,
value: false,
observer: '_onOpenedChange',
notify: true
observer: '_onOpenedChange'
},
/**
* Defines the application title
*/
title: {
type: String,
value: 'App name',
notify: true
value: 'App name'
}
};
}
Expand Down

0 comments on commit 2af45c3

Please sign in to comment.