Skip to content

Commit

Permalink
Wire up ariaLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
tidy-dev committed Dec 11, 2024
1 parent 8010751 commit 4ba30c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/ui/changes/filter-changes-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ export class FilterChangesList extends React.Component<
focusedRow: this.state.focusedRow,
}}
onItemContextMenu={this.onItemContextMenu}
// ariaLabel={filesDescription}
ariaLabel={filesDescription}
/>
</div>
{this.renderStashedChanges()}
Expand Down
4 changes: 4 additions & 0 deletions app/src/ui/lib/augmented-filter-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ interface IAugmentedSectionFilterListProps<T extends IFilterListItem> {
* where to scroll do on rendering of the list.
*/
readonly setScrollTop?: number

/** The aria-label attribute for the list component. */
readonly ariaLabel?: string
}

interface IAugmentedSectionFilterListState<T extends IFilterListItem> {
Expand Down Expand Up @@ -412,6 +415,7 @@ export class AugmentedSectionFilterList<
}}
onScroll={this.props.onScroll}
setScrollTop={this.props.setScrollTop}
ariaLabel={this.props.ariaLabel}
/>
)
}
Expand Down

0 comments on commit 4ba30c6

Please sign in to comment.