Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 556aa83

Browse files
committed
fix(tabs): adding bootstrap 4 specific class
1 parent 979fe0b commit 556aa83

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: src/tabs/test/tabs.spec.js

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ describe('tabs', function() {
5656
it('should pass class and other attributes on to tab template', function() {
5757
expect(elm).toHaveClass('hello');
5858
expect(elm.attr('data-pizza')).toBe('pepperoni');
59+
// ensure that we have our bootstrap 4 link prefix so things are future
60+
// proofed.
61+
var link = $(elm.find('a')[0]);
62+
expect(link).toHaveClass('nav-link');
5963
});
6064

6165
it('should create clickable titles', function() {

Diff for: template/tabs/tab.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<li ng-class="{active: active, disabled: disabled}" class="uib-tab">
2-
<a href ng-click="select()" uib-tab-heading-transclude>{{heading}}</a>
1+
<li ng-class="{active: active, disabled: disabled}" class="uib-tab nav-item">
2+
<a href ng-click="select()" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>
33
</li>

0 commit comments

Comments
 (0)