From b29b95b0f894e2e2636ce9bf80ebd9bbc6b21ecf Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 18 Apr 2022 09:35:56 +0200 Subject: [PATCH] fix(devtools): clean up menu layout (#45665) The menus weren't using the `mat-menu` component correctly which had led to some inconsistent spacing and the need for style overrides. These changes correctly wrap the menu content in `mat-menu-item` which has the added benefit of having keyboard support. I had to keep some of the overrides in order to preserve the dense layout of the menus. I've also cleaned up the component by: * Removing some unnecessary styles. * Switching single-class usages of `ngClass` to `class.` bindings. * Not using `br` tags for spacing. PR Close #45665 --- .../devtools-tabs.component.html | 74 +++++++++---------- .../devtools-tabs.component.scss | 51 +++++-------- 2 files changed, 50 insertions(+), 75 deletions(-) diff --git a/devtools/projects/ng-devtools/src/lib/devtools-tabs/devtools-tabs.component.html b/devtools/projects/ng-devtools/src/lib/devtools-tabs/devtools-tabs.component.html index 4dbe2f56b6f..4a830175f65 100644 --- a/devtools/projects/ng-devtools/src/lib/devtools-tabs/devtools-tabs.component.html +++ b/devtools/projects/ng-devtools/src/lib/devtools-tabs/devtools-tabs.component.html @@ -1,7 +1,7 @@