From c694b07ff4f331de4f8b46a8230733320de537d9 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 23 Aug 2024 14:38:08 +0100 Subject: [PATCH] Standardise hover and selected states between action buttons and icons in view nav bar --- packages/bbui/src/ActionMenu/ActionMenu.svelte | 4 +++- packages/bbui/src/Icon/Icon.svelte | 5 +++-- .../table/[tableId]/_components/CreateViewButton.svelte | 9 ++++----- .../data/table/[tableId]/_components/ViewNavBar.svelte | 4 ++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/bbui/src/ActionMenu/ActionMenu.svelte b/packages/bbui/src/ActionMenu/ActionMenu.svelte index f27854bc04..c8d0dde8f9 100644 --- a/packages/bbui/src/ActionMenu/ActionMenu.svelte +++ b/packages/bbui/src/ActionMenu/ActionMenu.svelte @@ -15,6 +15,7 @@ let anchor let dropdown let timeout + let open // This is needed because display: contents is considered "invisible". // It should only ever be an action button, so should be fine. @@ -63,10 +64,11 @@ on:mouseenter={openOnHover ? show : null} on:mouseleave={openOnHover ? queueHide : null} > - + diff --git a/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/_components/ViewNavBar.svelte b/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/_components/ViewNavBar.svelte index 022e3c202a..648f3dd6cd 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/_components/ViewNavBar.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/_components/ViewNavBar.svelte @@ -268,8 +268,8 @@ {/if} {#if overflowedViews.length} -
- +
+ {overflowedViews.length} more