Skip to content

Commit

Permalink
fix(textarea): add ion color classes
Browse files Browse the repository at this point in the history
  • Loading branch information
camwiegert committed Aug 8, 2018
1 parent 6738ab7 commit 5627811
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/src/components/textarea/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component, Element, Event, EventEmitter, Prop, State, Watch } from '@st

import { Color, InputChangeEvent, Mode, StyleEvent } from '../../interface';
import { debounceEvent, deferEvent, renderHiddenInput } from '../../utils/helpers';
import { createColorClasses } from '../../utils/theme';
import { TextareaComponent } from '../input/input-base';

@Component({
Expand Down Expand Up @@ -239,6 +240,14 @@ export class Textarea implements TextareaComponent {
return this.value !== '';
}

hostData() {
return {
class: {
...createColorClasses(this.color)
}
};
}

render() {
renderHiddenInput(this.el, this.name, this.value, this.disabled);

Expand Down

0 comments on commit 5627811

Please sign in to comment.