fix a11y bugs in RoutedTabs, UserList

This commit is contained in:
Keith J. Grant 2021-04-09 14:17:56 -07:00
parent be9622d03f
commit 94038006aa
3 changed files with 5 additions and 4 deletions

View File

@ -60,6 +60,7 @@
"mode",
"aria-labelledby",
"aria-hidden",
"aria-controls",
"sortKey",
"ouiaId",
"credentialTypeNamespace",

View File

@ -3,8 +3,7 @@ import { shape, string, number, arrayOf, node, oneOfType } from 'prop-types';
import { Tab, Tabs, TabTitleText } from '@patternfly/react-core';
import { useHistory, useLocation } from 'react-router-dom';
function RoutedTabs(props) {
const { tabsArray } = props;
function RoutedTabs({ tabsArray }) {
const history = useHistory();
const location = useLocation();
@ -36,8 +35,9 @@ function RoutedTabs(props) {
aria-label={typeof tab.name === 'string' ? tab.name : null}
eventKey={tab.id}
key={tab.id}
link={tab.link}
href={tab.link}
title={<TabTitleText>{tab.name}</TabTitleText>}
aria-controls=""
/>
))}
</Tabs>

View File

@ -43,7 +43,7 @@ function UserListItem({
}}
/>
<Td id={labelId} dataLabel={i18n._(t`Username`)}>
<Link to={`${detailUrl}`} id={labelId}>
<Link to={`${detailUrl}`}>
<b>{user.username}</b>
</Link>
{ldapUser && (