amend(tabs): prevent footer from having tabs top and re-add $tabs-striped-off-opacity

This commit is contained in:
Perry Govier
2014-12-12 11:32:53 -06:00
parent 9ddce8f149
commit b6e2fbad88
3 changed files with 10 additions and 7 deletions

View File

@@ -124,9 +124,9 @@ function headerFooterBarDirective(isHeader) {
controller: '$ionicHeaderBar',
compile: function(tElement, $attr) {
tElement.addClass(isHeader ? 'bar bar-header' : 'bar bar-footer');
// android style tabs? if so, remove bottom border for seamless display
// top style tabs? if so, remove bottom border for seamless display
$timeout(function() {
if ($document[0].getElementsByClassName('tabs-top').length) tElement.addClass('has-tabs-top');
if (isHeader && $document[0].getElementsByClassName('tabs-top').length) tElement.addClass('has-tabs-top');
});
return { pre: prelink };