Skip to content

Commit

Permalink
fix: ∆
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLantz committed Jan 9, 2017
1 parent a82ec47 commit 4178a90
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ <h3>Alerts Event API</h3>
<button class="target pe-btn_cta--btn_xlarge" onclick="buttonHandler('clear')">Clear Alert</button>
</div>




<script>
function buttonHandler(type) {
// ========EVENT API FOR INTERACTING WITH THE COMPONENT=========================
Expand Down Expand Up @@ -91,6 +94,10 @@ <h3>Alerts Event API</h3>
}
</script>





<script>
if (document.body.children[0].nodeName !== 'svg') {
var pe_ajax = new XMLHttpRequest();
Expand Down
3 changes: 2 additions & 1 deletion src/js/AlertList.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ export default AlertList;


function _renderAlert (alertList) {

const alertsToRender = [];

alertList.forEach((alert, index) => {
alertsToRender.push(
<Alert
key = {`pe-alert-${alert.alertType}-${index}`}
key = {index}
index = {index}
opacity = {this.state.opacity}
closeTitleProp = {this.state.closeProp}
Expand Down
5 changes: 3 additions & 2 deletions src/scss/component-specific.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
margin-top: 30px;
list-style:none;
animation-name: openAlert;
animation-duration: .3s;
animation-duration: 0.3s;
background-color: #ffffff;
padding: $alert-padding;
}

.alertList {
position:fixed;
width:35%;
float:right;
right:0;
margin-right:2%;
}

Expand Down

0 comments on commit 4178a90

Please sign in to comment.