Wizard: Make popover button independent on tab

Previously when the Included/Other repos popover button was clicked the tab changed as well. This makes the popover button independent on the selected tab.
This commit is contained in:
regexowl 2025-06-16 14:38:53 +02:00 committed by Lucas Garfield
parent d6acce47a2
commit 8e504a527b
2 changed files with 4 additions and 12 deletions

View file

@ -1508,20 +1508,14 @@ const Packages = () => {
>
<Tab
eventKey="included-repos"
title={
<TabTitleText>
Included repos <IncludedReposPopover />
</TabTitleText>
}
title={<TabTitleText>Included repos</TabTitleText>}
actions={<IncludedReposPopover />}
aria-label="Included repositories"
/>
<Tab
eventKey="other-repos"
title={
<TabTitleText>
Other repos <OtherReposPopover />
</TabTitleText>
}
title={<TabTitleText>Other repos</TabTitleText>}
actions={<OtherReposPopover />}
aria-label="Other repositories"
/>
</Tabs>

View file

@ -20,7 +20,6 @@ export const IncludedReposPopover = () => {
variant="plain"
aria-label="About included repositories"
component="span"
className="pf-v6-u-p-0"
size="sm"
isInline
/>
@ -45,7 +44,6 @@ export const OtherReposPopover = () => {
variant="plain"
aria-label="About other repositories"
component="span"
className="pf-v6-u-p-0"
size="sm"
isInline
/>