mirror of
https://github.com/yewprint/yewprint
synced 2024-11-25 04:50:20 +00:00
tabs: do not use class when hidden
This avoid the display property getting overwritten by a custom class.
This commit is contained in:
parent
d656574d41
commit
9f04e97c11
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ impl<T: Clone + PartialEq + Hash + 'static> Component for Tabs<T> {
|
|||
<div
|
||||
class=classes!(
|
||||
"bp3-tab-panel",
|
||||
props.panel_class.clone(),
|
||||
selected.then(|| props.panel_class.clone()).flatten(),
|
||||
)
|
||||
aria-labelledby=title_id.to_string()
|
||||
aria-hidden=(!selected).then(|| "true")
|
||||
|
|
Loading…
Reference in a new issue