Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 8c5ecd4

Browse files
committed
style(tabs): add z-index to ink bar
1 parent 7fc6b42 commit 8c5ecd4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/tabs/_tabs.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ md-tabs[center] .md-header:not(.md-paginating) .md-header-items {
8888
}
8989

9090
md-tabs-ink-bar {
91+
z-index: 1;
9192
display: none;
9293
position: absolute;
9394
left: 0;

src/components/tabs/js/inkBarDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function MdTabInkDirective($mdConstant, $window, $$rAF, $timeout) {
3333
var selected = tabsCtrl.selected();
3434

3535
var hideInkBar = !selected || tabsCtrl.count() < 2 ||
36-
(scope.pagination && scope.pagination.itemsPerPage === 1);
36+
(scope.pagination || {}).itemsPerPage === 1;
3737
element.css('display', hideInkBar ? 'none' : 'block');
3838

3939
if (!hideInkBar) {

0 commit comments

Comments
 (0)