Wire up active style for Tab

This commit is contained in:
Marshall Bowers
2023-10-19 16:37:54 -04:00
parent e1e8b63eb5
commit 52f2521f6a
+2 -1
View File
@@ -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()