Skip to content

Commit f763e95

Browse files
committed
Add captions to user and space grid pages
1 parent bc05e79 commit f763e95

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

x-pack/plugins/security/public/management/users/users_grid/users_grid_page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ export class UsersGridPage extends Component<Props, State> {
260260
{
261261
<EuiInMemoryTable
262262
itemId="username"
263+
tableCaption={i18n.translate('xpack.security.management.users.tableCaption', {
264+
defaultMessage: 'List of {count} users.',
265+
values: { count: this.state.visibleUsers.length },
266+
})}
267+
rowHeader="username"
263268
columns={columns}
264269
selection={selectionConfig}
265270
pagination={pagination}

x-pack/plugins/spaces/public/management/spaces_grid/__snapshots__/spaces_grid_pages.test.tsx.snap

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ export class SpacesGridPage extends Component<Props, State> {
110110
<EuiInMemoryTable
111111
itemId={'id'}
112112
items={this.state.spaces}
113+
tableCaption={i18n.translate('xpack.spaces.management.spacesGridPage.tableCaption', {
114+
defaultMessage: 'List of {count} spaces.',
115+
values: { count: this.state.spaces.length },
116+
})}
117+
rowHeader="name"
113118
columns={this.getColumnConfig()}
114119
hasActions
115120
pagination={true}

0 commit comments

Comments
 (0)