Skip to content

Commit

Permalink
feat: add aria-label to VirtualizedList
Browse files Browse the repository at this point in the history
  • Loading branch information
ibukun-ol committed Oct 21, 2024
1 parent dea87cc commit 11fb76c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export interface VirtualizedListProps extends VibeComponentProps {
*/
onLayoutDirectionScrollbarVisibilityChange?: (value: boolean) => void;
role?: string;
ariaLabel?: string;
/** Custom style to pass to the component */
style?: CSSProperties;
/**
Expand Down Expand Up @@ -163,6 +164,7 @@ const VirtualizedList: VibeComponent<VirtualizedListProps> = forwardRef(
virtualListRef,
scrollableClassName,
role,
ariaLabel,
style,
"data-testid": dataTestId
},
Expand Down Expand Up @@ -386,6 +388,7 @@ const VirtualizedList: VibeComponent<VirtualizedListProps> = forwardRef(
className={cx(styles.virtualizedListWrapper, className)}
id={id}
role={role}
aria-label={ariaLabel}
data-testid={dataTestId || getTestId(ComponentDefaultTestId.VIRTUALIZED_LIST, id)}
style={style}
>
Expand Down

0 comments on commit 11fb76c

Please sign in to comment.