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

Commit

Permalink
fix(tabs): adding bootstrap 4 specific class
Browse files Browse the repository at this point in the history
  • Loading branch information
uxtx committed Feb 16, 2016
1 parent 979fe0b commit 556aa83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/tabs/test/tabs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ describe('tabs', function() {
it('should pass class and other attributes on to tab template', function() {
expect(elm).toHaveClass('hello');
expect(elm.attr('data-pizza')).toBe('pepperoni');
// ensure that we have our bootstrap 4 link prefix so things are future
// proofed.
var link = $(elm.find('a')[0]);
expect(link).toHaveClass('nav-link');
});

it('should create clickable titles', function() {
Expand Down
4 changes: 2 additions & 2 deletions template/tabs/tab.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<li ng-class="{active: active, disabled: disabled}" class="uib-tab">
<a href ng-click="select()" uib-tab-heading-transclude>{{heading}}</a>
<li ng-class="{active: active, disabled: disabled}" class="uib-tab nav-item">
<a href ng-click="select()" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>
</li>

0 comments on commit 556aa83

Please sign in to comment.