Added new directive for 'x' icon to clear text inputs

I saw this issue and thought I'd help resolve it: #2473