tabs: do not use class when hidden

This avoid the display property getting overwritten by a custom class.
This commit is contained in:
Cecile Tonglet 2021-09-08 13:57:33 +01:00
parent d656574d41
commit 9f04e97c11

View file

@ -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")