Skip to content

mat-icon-button hover area bug #11826

Closed
@nicholasfoden

Description

@nicholasfoden

Bug:

when using mat-icon button, the area which triggers the button extends beyond the element.
one
two

What is the expected behavior?

the hover area is contained within the element.

What is the current behaviour?

the area extends beyond the element, possibly related to the text within the element which is replaced inside

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

https://stackblitz.com/edit/angular-material2-issue-1ydtyw?file=app/app.component.html

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

Chrome 66 & maybe others...

Is there anything else we should know?

setting overflow: hidden on mat-icon-button rectifies the issue

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions