Merge pull request #17154 from desktop/multiselection-a11y

This commit is contained in:
Sergio Padrino 2023-08-02 11:32:52 +02:00 committed by GitHub
commit 7003c64559
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -1098,6 +1098,9 @@ export class List extends React.Component<IListProps, IListState> {
height={height}
columnWidth={width}
columnCount={1}
aria-multiselectable={
this.props.selectionMode !== 'single' ? true : undefined
}
rowCount={this.props.rowCount}
rowHeight={this.props.rowHeight}
cellRenderer={this.renderRow}

View file

@ -1265,6 +1265,9 @@ export class SectionList extends React.Component<
autoContainerWidth={true}
containerRole="presentation"
aria-label={this.props.getSectionAriaLabel?.(section)}
aria-multiselectable={
this.props.selectionMode !== 'single' ? true : undefined
}
// Set the width and columnWidth to a hardcoded large value to prevent
columnWidth={10000}
width={10000}