mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +00:00
Merge pull request #17154 from desktop/multiselection-a11y
This commit is contained in:
commit
7003c64559
2 changed files with 6 additions and 0 deletions
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue