Wire up active style for `Tab`

Marshall Bowers created

Change summary

crates/ui2/src/components/tab.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

crates/ui2/src/components/tab.rs 🔗

@@ -110,6 +110,7 @@ impl<S: 'static + Send + Sync + Clone> Tab<S> {
         };
 
         div()
+            .id("tab")
             .px_2()
             .py_0p5()
             .flex()
@@ -117,7 +118,7 @@ impl<S: 'static + Send + Sync + Clone> Tab<S> {
             .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()