Skip to content

mat-icon height/width styles not specific enough #8699

Closed
@raciasolvo

Description

@raciasolvo

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Icon should be 24px.

What is the current behavior?

icons

What are the steps to reproduce?

https://stackblitz.com/edit/angular-htjtlq

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

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

Last

Is there anything else we should know?

When sprites don't have width and height (see https://raw.githubusercontent.com/google/material-design-icons/master/sprites/svg-sprite/svg-sprite-action-symbol.svg) we can see the bug. Weight of your style is less.

I wrote early #3441

In some projects I also use flex-shrink instead width and height for svg:

@mixin mat-icon-size-bug() {
  	.mat-icon {
  		flex-shrink: 0;
	}
}

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions