diff --git a/source/Grid/Grid.js b/source/Grid/Grid.js index 58fc47015..35575fc69 100644 --- a/source/Grid/Grid.js +++ b/source/Grid/Grid.js @@ -35,6 +35,7 @@ const SCROLL_POSITION_CHANGE_REASONS = { export default class Grid extends PureComponent { static propTypes = { "aria-label": PropTypes.string, + "aria-readonly": PropTypes.bool, /** * Set the width of the inner scrollable container to 'auto'. @@ -95,6 +96,11 @@ export default class Grid extends PureComponent { columnWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.func]) .isRequired, + /** + * ARIA role for the cell-container. + */ + containerRole: PropTypes.string, + /** Optional inline style applied to inner cell-container */ containerStyle: PropTypes.object, @@ -245,7 +251,9 @@ export default class Grid extends PureComponent { static defaultProps = { "aria-label": "grid", + "aria-readonly": true, cellRangeRenderer: defaultCellRangeRenderer, + containerRole: "rowgroup", estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: scrollbarSize, @@ -836,6 +844,7 @@ export default class Grid extends PureComponent { autoHeight, autoWidth, className, + containerRole, containerStyle, height, id, @@ -897,6 +906,7 @@ export default class Grid extends PureComponent {