From 3edaf503f056b4b255b7330dfa571d93cfeb83c9 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Fri, 5 Jul 2024 17:45:50 -0300 Subject: [PATCH] fix: allow tab selection from overflow on entire tab area Close #17 --- .../META-INF/frontend/fcEnhancedTabs/fc-enhanced-tabs.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/resources/META-INF/frontend/fcEnhancedTabs/fc-enhanced-tabs.css b/src/main/resources/META-INF/frontend/fcEnhancedTabs/fc-enhanced-tabs.css index c5cc200..ff058be 100644 --- a/src/main/resources/META-INF/frontend/fcEnhancedTabs/fc-enhanced-tabs.css +++ b/src/main/resources/META-INF/frontend/fcEnhancedTabs/fc-enhanced-tabs.css @@ -70,6 +70,13 @@ vaadin-menu-bar-list-box[theme="fc-enhanced-tabs"] vaadin-tab[selected]::before, vaadin-menu-bar-list-box[theme="fc-enhanced-tabs"] vaadin-tab[selected]::after { transform: translateY(50%) scale(1); } +vaadin-menu-bar-list-box vaadin-tab { + flex-grow: 1 +} + +vaadin-menu-bar-list-box vaadin-tab a[href] { + justify-content: normal; +} /* :host([orientation="vertical"]) ::slotted(a[href]) {