Wire up active style for Tab
This commit is contained in:
parent
e1e8b63eb5
commit
52f2521f6a
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue