diff --git a/ionic/components/app/test/sink/pages/tabs.ts b/ionic/components/app/test/sink/pages/tabs.ts index 719b379d67..b3a24badb7 100644 --- a/ionic/components/app/test/sink/pages/tabs.ts +++ b/ionic/components/app/test/sink/pages/tabs.ts @@ -1,34 +1,55 @@ import {Component, Directive, View} from 'angular2/angular2'; import {FormBuilder, Validators, formDirectives, ControlGroup} from 'angular2/forms'; -import {IonicApp, Tabs, Tab, NavbarTemplate, Navbar, NavController, Content} from 'ionic/ionic'; +import {IonicApp, IonicView, Tabs, Tab, NavbarTemplate, Navbar, NavController, Content} from 'ionic/ionic'; import {SinkPage} from '../sink-page'; +@Component({selector: 'ion-view'}) +@IonicView({ + template: '' + + '' + + 'Featured' + + '' + + '' + + '' +}) +class FeaturedTabPage { + constructor(nav: NavController) { + this.nav = nav; + } +} +@Component({selector: 'ion-view'}) +@IonicView({ + template: '' + + '' + + 'Top' + + '' + + '' + + '' +}) +class TopTabPage { + constructor(nav: NavController) { + this.nav = nav; + } +} + @Component({ selector: 'ion-view' }) @View({ template: ` Tabs - - - - - - Tab 1 Content - + + + + + Search - - - - - Tab 2 Content - - + + Updates - `, directives: [NavbarTemplate, Navbar, Content, Tabs, Tab] @@ -36,5 +57,7 @@ import {SinkPage} from '../sink-page'; export class TabsPage extends SinkPage { constructor(app: IonicApp) { super(app); + this.featuredTab = FeaturedTabPage; + this.topTab = TopTabPage; } } diff --git a/ionic/components/tabs/tabs.scss b/ionic/components/tabs/tabs.scss index fbb5a34da8..6bc10aaac6 100644 --- a/ionic/components/tabs/tabs.scss +++ b/ionic/components/tabs/tabs.scss @@ -134,9 +134,10 @@ button.tab-button { } button.tab-button:hover { - opacity: 0.6; + opacity: 0.8; } button.tab-button[aria-selected="true"] { - color: red; + // Default color is primary + color: get-color(primary, base); }