Skip to content

bug: browser autofill background color overlaps label in md mode #18141

Description

@abennouna

Bug Report

Ionic version:
[x] 4.x

Current behavior:
Starting from 4.3.0, autofilled inputs overlap their floating labels in MD mode.

Expected behavior:
As for non-autofilled inputs, floating labels must stay entirely visible.

Steps to reproduce:
An ion-item containing a floating ion-label and an ion-input that is auto-fillable and auto-filled.

Related code:
N/A

Other information:
Ionic Screenshots
MD
TXbNfO3

iOS
vqAPHmu

MD implementation Screenshots
Chrome
LqzQAHJ

Safari
xpuBg2c

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.12.0 (~/.nvm/versions/node/v10.12.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.3.0
   @angular-devkit/build-angular : 0.13.8
   @angular-devkit/schematics    : 7.3.8
   @angular/cli                  : 7.3.8
   @ionic/angular-toolkit        : 1.5.1

System:

   NodeJS : v10.12.0 (~/.nvm/versions/node/v10.12.0/bin/node)
   npm    : 6.4.1
   OS     : macOS Mojave

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: replythe issue needs a response from the userpackage: core@ionic/core packagetype: buga confirmed bug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions