fix(input): clear icon can be styled (#26354)

resolves #19178, resolves #17168

Co-authored-by: Mathieu-COSYNS <Mathieu-COSYNS@users.noreply.github.com>
This commit is contained in:
Liam DeBeasi
2022-11-23 13:00:50 -05:00
committed by GitHub
parent 5a243ccebc
commit ccaff8d0dc
18 changed files with 22 additions and 33 deletions

View File

@ -1,5 +1,6 @@
import type { ComponentInterface, EventEmitter } from '@stencil/core';
import { Build, Component, Element, Event, Host, Method, Prop, State, Watch, h } from '@stencil/core';
import { closeCircle, closeSharp } from 'ionicons/icons';
import { getIonMode } from '../../global/ionic-global';
import type {
@ -499,7 +500,9 @@ export class Input implements ComponentInterface {
ev.preventDefault();
}}
onClick={this.clearTextInput}
/>
>
<ion-icon aria-hidden="true" icon={mode === 'ios' ? closeCircle : closeSharp}></ion-icon>
</button>
)}
</Host>
);