Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
fixed aria issues (#2927)
Browse files Browse the repository at this point in the history
fixes: #2852
  • Loading branch information
edewit committed Jul 8, 2022
1 parent 91b7c35 commit f35f4c0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/authentication/components/FlowRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const FlowRow = ({
className="keycloak__authentication__flow-item"
id={execution.id}
isExpanded={!execution.isCollapsed}
aria-labelledby={`title-id-${execution.id}`}
>
<DataListItemRow
className="keycloak__authentication__flow-row"
Expand All @@ -65,25 +66,22 @@ export const FlowRow = ({
aria-labelledby={execution.id}
>
<DataListControl>
<DataListDragButton
aria-labelledby={execution.id}
aria-describedby={t("common-help:dragHelp")}
/>
<DataListDragButton aria-label={t("common-help:dragHelp")} />
</DataListControl>
{hasSubList && (
<DataListToggle
onClick={() => onRowClick(execution)}
isExpanded={!execution.isCollapsed}
id={`toggle1-${execution.id}`}
aria-controls={`expand-${execution.id}`}
aria-controls={execution.executionList![0].id}
/>
)}
<DataListItemCells
dataListCells={[
<DataListCell key={`${execution.id}-name`}>
{!execution.authenticationFlow && (
<FlowTitle
id={execution.id}
id={`title-id-${execution.id}`}
key={execution.id}
title={execution.displayName!}
/>
Expand Down

0 comments on commit f35f4c0

Please sign in to comment.