mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 01:52:19 +08:00
fix(item): add input highlight using an absolute div (#15856)
Adds the following CSS properties to item: ``` --highlight-color-focused --highlight-color-valid --highlight-color-invalid --highlight-height ``` This also fixes an issue where we were showing the highlight on items with no lines, and shows inset vs full properly. Adds documentation and tests for input focus. fixes #14036 fixes #9639 fixes #14952 closes #15690
This commit is contained in:
@ -363,12 +363,12 @@ export class Input {
|
||||
}
|
||||
|
||||
export declare interface Item extends StencilComponents<'IonItem'> {}
|
||||
@Component({ selector: 'ion-item', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['color', 'mode', 'button', 'detail', 'detailIcon', 'disabled', 'href', 'lines', 'routerDirection', 'state', 'type'] })
|
||||
@Component({ selector: 'ion-item', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content>', inputs: ['color', 'mode', 'button', 'detail', 'detailIcon', 'disabled', 'href', 'lines', 'routerDirection', 'type'] })
|
||||
export class Item {
|
||||
|
||||
constructor(r: ElementRef) {
|
||||
const el = r.nativeElement;
|
||||
proxyInputs(this, el, ['color', 'mode', 'button', 'detail', 'detailIcon', 'disabled', 'href', 'lines', 'routerDirection', 'state', 'type']);
|
||||
proxyInputs(this, el, ['color', 'mode', 'button', 'detail', 'detailIcon', 'disabled', 'href', 'lines', 'routerDirection', 'type']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user