fix(components): add a mode agnostic css class (#9133)

Fixes #8545
This commit is contained in:
Alan
2016-11-14 13:50:01 -05:00
committed by Brandy Carney
parent d3ef28d3ec
commit 025c5cc646
30 changed files with 148 additions and 186 deletions

View File

@ -91,7 +91,7 @@ export class Checkbox extends Ion implements AfterContentInit, ControlValueAcces
*/
@Input()
set color(val: string) {
this._setColor('checkbox', val);
this._setColor(val);
}
/**
@ -99,7 +99,7 @@ export class Checkbox extends Ion implements AfterContentInit, ControlValueAcces
*/
@Input()
set mode(val: string) {
this._setMode('checkbox', val);
this._setMode(val);
}
/**
@ -114,9 +114,7 @@ export class Checkbox extends Ion implements AfterContentInit, ControlValueAcces
elementRef: ElementRef,
renderer: Renderer
) {
super(config, elementRef, renderer);
this.mode = config.get('mode');
super(config, elementRef, renderer, 'checkbox');
_form.register(this);
@ -168,7 +166,7 @@ export class Checkbox extends Ion implements AfterContentInit, ControlValueAcces
* @private
*/
writeValue(val: any) {
this._setChecked( isTrueProperty(val) );
this._setChecked(isTrueProperty(val));
}
/**
@ -215,7 +213,7 @@ export class Checkbox extends Ion implements AfterContentInit, ControlValueAcces
/**
* @private
*/
onTouched() {}
onTouched() { }
/**
* @private