Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix: dont use h1s

  • Loading branch information...
commit 743f7d08bd23c266026cdc1902af958404573f97 1 parent 5bcaf78
@tj tj authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  notification.css
  2. +1 −1  notification.html
  3. +2 −2 notification.js
View
2  notification.css
@@ -23,7 +23,7 @@
padding: 15px 20px;
}
-.notification h1 {
+.notification .title {
margin: 0 0 5px 0;
font-size: 16px;
font-weight: normal;
View
2  notification.html
@@ -1,6 +1,6 @@
<li class="notification hide">
<div class="content">
- <h1>Title</h1>
+ <span class="title">Title</span>
<a href="#" class="close">×</a>
<p>Message</p>
</div>
View
4 notification.js
@@ -120,8 +120,8 @@ Notification.prototype.render = function(options){
self.emit('click', e);
});
- el.find('h1').text(title);
- if (!title) el.find('h1').remove();
+ el.find('.title').text(title);
+ if (!title) el.find('.title').remove();
// message
if ('string' == typeof msg) {
Please sign in to comment.
Something went wrong with that request. Please try again.