mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
amend(tabs): prevent footer from having tabs top and re-add $tabs-striped-off-opacity
This commit is contained in:
4
js/angular/directive/headerFooterBar.js
vendored
4
js/angular/directive/headerFooterBar.js
vendored
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user