refactor(text-input): flattened css selectors, renamed some, cleaned up styles

references #689
This commit is contained in:
Brandy Carney
2015-12-08 16:58:50 -05:00
parent ce2e4a3e32
commit afaf4d6de4
6 changed files with 109 additions and 64 deletions

View File

@ -76,7 +76,8 @@ export class TextInput {
@Optional() navCtrl: NavController,
@Attribute('floating-label') isFloating: string,
@Attribute('stacked-label') isStacked: string,
@Attribute('fixed-label') isFixed: string
@Attribute('fixed-label') isFixed: string,
@Attribute('inset') isInset: string
) {
this.renderer = renderer;
@ -87,7 +88,7 @@ export class TextInput {
this.lastTouch = 0;
// make more gud with pending @Attributes API
this.displayType = (isFloating === '' ? 'floating' : (isStacked === '' ? 'stacked' : (isFixed === '' ? 'fixed' : null)));
this.displayType = (isFloating === '' ? 'floating' : (isStacked === '' ? 'stacked' : (isFixed === '' ? 'fixed' : (isInset === '' ? 'inset' : null))));
this.app = app;
this.elementRef = elementRef;