Skip to content

Mat-icon prefix on a button breaks the first letter uppercase CSS #12058

@natsuki0623

Description

@natsuki0623

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When I use CSS to put the first letter of a button uppercase, adding a mat-icon as prefix on this button shouldn't change a thing.

What is the current behavior?

When I add a mat-icon as prefix, it breaks the CSS, and I no longer have an uppercase first letter

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material2-progress-spinner-5te7th

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

It is quite embarrassing to use a tag on the first letters of all buttons including an icon as prefix

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

Angular5, all major browsers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions