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

Commit e20ff41

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

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ 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 bootstrap 4 link class so things are future proofed.
60+
var link = $(elm.find('a')[0]);
61+
expect(link).toHaveClass('nav-link');
5962
});
6063

6164
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)