Skip to content

cdkTrapFocus directive on MatDialog changes layout #9722

@gtranter

Description

@gtranter

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Dialog layout is unchanged by the use of cdkTrapFocus directive

What is the current behavior?

Using cdkTrapFocus directive on the mat-dialog-actions container inside a dialog adds space below the actions row.

What are the steps to reproduce?

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

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

Angular 5.2.3 Material 5.1.1

Is there anything else we should know?

In the demo, open the dialogs and notice the difference in space below the action buttons.

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions