mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
fix a11y bugs in RoutedTabs, UserList
This commit is contained in:
parent
be9622d03f
commit
94038006aa
@ -60,6 +60,7 @@
|
||||
"mode",
|
||||
"aria-labelledby",
|
||||
"aria-hidden",
|
||||
"aria-controls",
|
||||
"sortKey",
|
||||
"ouiaId",
|
||||
"credentialTypeNamespace",
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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 && (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user