From f0a5759c0f15277d22ae15e763cf04d71e5b8d36 Mon Sep 17 00:00:00 2001 From: Tomi Virkki Date: Wed, 2 Oct 2024 13:00:32 +0300 Subject: [PATCH] hide selected widget default shadow --- .../dashboard/theme/lumo/vaadin-dashboard-widget-styles.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/dashboard/theme/lumo/vaadin-dashboard-widget-styles.js b/packages/dashboard/theme/lumo/vaadin-dashboard-widget-styles.js index d277662871..c24a32c4ed 100644 --- a/packages/dashboard/theme/lumo/vaadin-dashboard-widget-styles.js +++ b/packages/dashboard/theme/lumo/vaadin-dashboard-widget-styles.js @@ -140,6 +140,9 @@ const dashboardWidget = css` opacity: var(--_vaadin-dashboard-widget-opacity); filter: var(--_vaadin-dashboard-widget-filter); background-color: var(--lumo-base-color); + } + + :host(:not([selected])) { box-shadow: var(--lumo-box-shadow-s); }