Skip to content

bug:(form-field) icon-button used as suffix/prefix displays wrong on Edge for fill appearance #13094

Open
@IlCallo

Description

@IlCallo

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Chrome
image

What is the current behavior?

Firefox
image

Edge
image

What are the steps to reproduce?

<mat-form-field appearance="fill">
    <mat-label>Label</mat-label>

    <input matInput>

    <button mat-icon-button matSuffix><mat-icon>cancel</mat-icon></button>
</mat-form-field>

https://stackblitz.com/edit/angular-material2-issue-gjmq4s

What is the use-case or motivation for changing an existing behavior?

Keep ripple effect on click of icon-button.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 6.1.2
Angular Material 6.4.7
TS 2.9.x
Firefox, Edge

Is there anything else we should know?

I will switch to mat-icon for now, for which everything works fine.
On Material Design guidelines it's not clear if a suffix/prefix element could/should/must have or not a ripple effect, was just trying to be consistent with all others clickable icons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/form-field

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions