Skip to content

Commit

Permalink
ensure mm-datepicker panel arrow color is correct if footer
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykoerber committed Apr 21, 2016
1 parent 004e4dd commit 75fc00d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mm-datepicker/mm-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@
}
},

ready: function() {
if(this.useCommit) this.classList.add('hasFooter');
attached: function() {
if (this.useCommit) this.classList.add('has-footer');
},

_closeLinkHandler: function(e) {
Expand Down
3 changes: 1 addition & 2 deletions src/mm-datepicker/mm-datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ $arrow-size: 10px;
@include arrow(bottom, $arrow-size, $color-F0, $color-A8);
}

// Account for footer arrow color:
:host([direction="n"][class="hasFooter"]) {
:host([direction="n"][class="has-footer"]) {
@include arrow(bottom, $arrow-size, $color-A12, $color-A8);
}

Expand Down

0 comments on commit 75fc00d

Please sign in to comment.