Skip to content

Commit

Permalink
Added aria-activedescendant prop
Browse files Browse the repository at this point in the history
  • Loading branch information
adirhaz1z committed Apr 8, 2021
1 parent 595fc9f commit 4a06d53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ type ScrollPosition = {
};

type Props = {
'aria-label': string,
'aria-label'?: string,
'aria-readonly'?: boolean,
'aria-activedescendant'?: String,

/**
* Set the width of the inner scrollable container to 'auto'.
Expand Down Expand Up @@ -1044,6 +1045,7 @@ class Grid extends React.PureComponent<Props, State> {
{...containerProps}
aria-label={this.props['aria-label']}
aria-readonly={this.props['aria-readonly']}
aria-activedescendant={this.props['aria-activedescendant']}
className={clsx('ReactVirtualized__Grid', className)}
id={id}
onScroll={this._onScroll}
Expand Down
1 change: 1 addition & 0 deletions source/List/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import clsx from 'clsx';

type Props = {
'aria-label'?: string,
'aria-activedescendant'?: string,

/**
* Removes fixed height from the scrollingContainer so that the total height
Expand Down

0 comments on commit 4a06d53

Please sign in to comment.