From b4ad1ae782765cb70342051d5427476dcc98daa3 Mon Sep 17 00:00:00 2001 From: Axel Peter Date: Tue, 27 Feb 2018 10:57:25 +0100 Subject: [PATCH 1/2] :lipstick: style(navbar): hide empty sublinks --- packages/oui-navbar/src/index.spec.data.json | 6 ++++++ packages/oui-navbar/src/menu/navbar-menu.html | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/oui-navbar/src/index.spec.data.json b/packages/oui-navbar/src/index.spec.data.json index 67455274..5a2e85ad 100644 --- a/packages/oui-navbar/src/index.spec.data.json +++ b/packages/oui-navbar/src/index.spec.data.json @@ -354,6 +354,12 @@ "url": "#!/oui-angular/navbar" } ] + }, + { + "name": "empty", + "label": "Not visible", + "title": "Empty", + "subLinks": [] } ] }, diff --git a/packages/oui-navbar/src/menu/navbar-menu.html b/packages/oui-navbar/src/menu/navbar-menu.html index cf7d0812..7a3f1d9d 100644 --- a/packages/oui-navbar/src/menu/navbar-menu.html +++ b/packages/oui-navbar/src/menu/navbar-menu.html @@ -77,7 +77,7 @@