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
- Add `nav-link` class for Bootstrap 4

Closes #5488
  • Loading branch information
uxtx authored and wesleycho committed Feb 16, 2016
1 parent 979fe0b commit 3814fe3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/tabs/test/tabs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ 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 bootstrap 4 link class 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 3814fe3

Please sign in to comment.