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

Commit 9affd12

Browse files
author
Robert Messerle
committed
fix(tabs): fixes styles for md-border-bottom and md-align-tabs
Closes #2119
1 parent 942d0b9 commit 9affd12

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/components/tabs/js/tabsDirective.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
dynamicHeight: '=?mdDynamicHeight',
9797
centerTabs: '=?mdCenterTabs',
9898
selectedIndex: '=?mdSelected',
99-
stretchTabs: '@?mdStretchTabs'
99+
stretchTabs: '@?mdStretchTabs'
100100
},
101101
transclude: true,
102102
template: '\

src/components/tabs/tabs.scss

+15-15
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ md-tabs {
4444
}
4545
}
4646
}
47+
&[md-align-tabs="bottom"] {
48+
md-tabs-wrapper {
49+
position: absolute;
50+
bottom: 0;
51+
left: 0;
52+
right: 0;
53+
height: $tabs-header-height;
54+
}
55+
}
56+
&[md-border-bottom] {
57+
md-tabs-wrapper {
58+
border-width: 0 0 1px;
59+
border-style: solid;
60+
}
61+
}
4762
}
4863
md-tabs-wrapper {
4964
display: block;
@@ -88,21 +103,6 @@ md-tabs-wrapper {
88103
transform: translate3d(-50%, -50%, 0) rotate(180deg);
89104
}
90105
}
91-
&[md-align-tabs="bottom"] {
92-
md-tabs-wrapper {
93-
position: absolute;
94-
bottom: 0;
95-
left: 0;
96-
right: 0;
97-
height: $tabs-header-height;
98-
}
99-
}
100-
&[md-border-bottom] {
101-
md-tabs-wrapper {
102-
border-width: 0 0 1px;
103-
border-style: solid;
104-
}
105-
}
106106
&.md-stretch-tabs {
107107
md-pagination-wrapper {
108108
width: 100%;

0 commit comments

Comments
 (0)