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

View file

@ -110,6 +110,7 @@ impl<S: 'static + Send + Sync + Clone> Tab<S> {
}; };
div() div()
.id("tab")
.px_2() .px_2()
.py_0p5() .py_0p5()
.flex() .flex()
@ -117,7 +118,7 @@ impl<S: 'static + Send + Sync + Clone> Tab<S> {
.justify_center() .justify_center()
.bg(tab_bg) .bg(tab_bg)
.hover(|h| h.bg(tab_hover_bg)) .hover(|h| h.bg(tab_hover_bg))
// .active(|a| a.bg(tab_active_bg)) .active(|a| a.bg(tab_active_bg))
.child( .child(
div() div()
.px_1() .px_1()