From 2b951f782b390fd5fe3161483bd4375ff4257b89 Mon Sep 17 00:00:00 2001 From: Jonathon Lee Date: Sun, 17 Apr 2016 14:11:57 +0100 Subject: [PATCH] fix(Tabset): add tab-container class to the Tabset component for correct display --- components/tabs/tabset.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/tabs/tabset.component.ts b/components/tabs/tabset.component.ts index f66a356f3a..bae0324cc8 100644 --- a/components/tabs/tabset.component.ts +++ b/components/tabs/tabset.component.ts @@ -1,4 +1,4 @@ -import {Component, OnInit, Input} from 'angular2/core'; +import {Component, OnInit, HostBinding, Input} from 'angular2/core'; import {NgClass} from 'angular2/common'; import {NgTransclude} from '../common'; import {Tab} from './tab.directive'; @@ -36,6 +36,8 @@ export class Tabset implements OnInit { @Input() public get type():string {return this._type;}; + @HostBinding('class') class = 'tab-container'; + public set vertical(value:boolean) { this._vertical = value; this.setClassMap();