From 52f2521f6a72b6b3e7f382099768d895378fc89f Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 19 Oct 2023 16:37:54 -0400 Subject: [PATCH] Wire up active style for `Tab` --- crates/ui2/src/components/tab.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui2/src/components/tab.rs b/crates/ui2/src/components/tab.rs index 6eebaa1e0b41926ff3c83d1de1b09de3afb99bab..e9d03e9caeea07f31f5565f01f350fb787b8cbd9 100644 --- a/crates/ui2/src/components/tab.rs +++ b/crates/ui2/src/components/tab.rs @@ -110,6 +110,7 @@ impl Tab { }; div() + .id("tab") .px_2() .py_0p5() .flex() @@ -117,7 +118,7 @@ impl Tab { .justify_center() .bg(tab_bg) .hover(|h| h.bg(tab_hover_bg)) - // .active(|a| a.bg(tab_active_bg)) + .active(|a| a.bg(tab_active_bg)) .child( div() .px_1()