Textinput: added warning class where necessary

Closes gh-266