mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(input): clear button uses contrast when setting color on item (#26592)
resolves #26337
This commit is contained in:
@ -12,7 +12,7 @@ import type {
|
||||
} from '../../interface';
|
||||
import type { Attributes } from '../../utils/helpers';
|
||||
import { inheritAriaAttributes, debounceEvent, findItemLabel, inheritAttributes } from '../../utils/helpers';
|
||||
import { createColorClasses } from '../../utils/theme';
|
||||
import { createColorClasses, hostContext } from '../../utils/theme';
|
||||
|
||||
/**
|
||||
* @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
|
||||
@ -454,6 +454,7 @@ export class Input implements ComponentInterface {
|
||||
[mode]: true,
|
||||
'has-value': this.hasValue(),
|
||||
'has-focus': this.hasFocus,
|
||||
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
||||
})}
|
||||
>
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user