refactor(text-input): renamed some classes and removed some nesting

references #689
This commit is contained in:
Brandy Carney
2015-12-08 15:44:11 -05:00
parent 6a7f5fadc9
commit abc93bc355
6 changed files with 14 additions and 18 deletions

View File

@ -372,7 +372,7 @@ export class TextInput {
* @private
*/
focusChange(hasFocus) {
this.renderer.setElementClass(this.elementRef, 'has-focus', hasFocus);
this.renderer.setElementClass(this.elementRef, 'input-focused', hasFocus);
if (!hasFocus) {
this.deregMove();
this.input.hideFocus(false);
@ -383,7 +383,7 @@ export class TextInput {
* @private
*/
hasValue(inputValue) {
this.renderer.setElementClass(this.elementRef, 'has-value', inputValue && inputValue !== '');
this.renderer.setElementClass(this.elementRef, 'input-has-value', inputValue && inputValue !== '');
}
/**