made added groups browsable (#21588)

fixes: #21173
This commit is contained in:
Erik Jan de Wit 2023-07-18 10:30:04 +02:00 committed by GitHub
parent e24d51edca
commit 5ee89ea15a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View file

@ -301,14 +301,10 @@ const GroupRow = ({
return ( return (
<DataListItem <DataListItem
className={`join-group-dialog-row-${
isRowDisabled(group) ? "disabled" : ""
}`}
aria-labelledby={group.name} aria-labelledby={group.name}
key={group.id} key={group.id}
id={group.id} id={group.id}
onClick={(e) => { onClick={(e) => {
if (isRowDisabled(group)) return;
if (type === "selectOne") { if (type === "selectOne") {
onSelect(group.id!); onSelect(group.id!);
} else if ( } else if (
@ -369,7 +365,7 @@ const GroupRow = ({
isPlainButtonAction isPlainButtonAction
> >
{((hasSubgroups(group) && canBrowse) || type === "selectOne") && ( {((hasSubgroups(group) && canBrowse) || type === "selectOne") && (
<Button isDisabled variant="link" aria-label={t("common:select")}> <Button variant="link" aria-label={t("common:select")}>
<AngleRightIcon /> <AngleRightIcon />
</Button> </Button>
)} )}

View file

@ -20,10 +20,6 @@ button#kc-join-groups-button {
margin-right: var(--pf-global--spacer--sm); margin-right: var(--pf-global--spacer--sm);
} }
.join-group-dialog-row-disabled {
cursor: not-allowed;
}
.join-group-dialog-row-m-disabled { .join-group-dialog-row-m-disabled {
pointer-events: none; pointer-events: none;
color: var(--pf-global--Color--200); color: var(--pf-global--Color--200);