mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 16:47:45 -02:30
fix a11y labels on dashboard tabs
This commit is contained in:
@@ -170,21 +170,7 @@ function Dashboard({ i18n }) {
|
||||
aria-label={i18n._(t`Job status graph tab`)}
|
||||
eventKey={0}
|
||||
title={<TabTitleText>{i18n._(t`Job status`)}</TabTitleText>}
|
||||
/>
|
||||
<Tab
|
||||
aria-label={i18n._(t`Recent Jobs list tab`)}
|
||||
eventKey={1}
|
||||
title={<TabTitleText>{i18n._(t`Recent Jobs`)}</TabTitleText>}
|
||||
/>
|
||||
<Tab
|
||||
aria-label={i18n._(t`Recent Templates list tab`)}
|
||||
eventKey={2}
|
||||
title={
|
||||
<TabTitleText>{i18n._(t`Recent Templates`)}</TabTitleText>
|
||||
}
|
||||
/>
|
||||
</Tabs>
|
||||
{activeTabId === 0 && (
|
||||
>
|
||||
<Fragment>
|
||||
<GraphCardHeader>
|
||||
<GraphCardActions>
|
||||
@@ -245,11 +231,32 @@ function Dashboard({ i18n }) {
|
||||
/>
|
||||
</CardBody>
|
||||
</Fragment>
|
||||
</Tab>
|
||||
<Tab
|
||||
aria-label={i18n._(t`Recent Jobs list tab`)}
|
||||
eventKey={1}
|
||||
title={<TabTitleText>{i18n._(t`Recent Jobs`)}</TabTitleText>}
|
||||
>
|
||||
<div>
|
||||
{activeTabId === 1 && (
|
||||
<JobList defaultParams={{ page_size: 5 }} />
|
||||
)}
|
||||
{activeTabId === 1 && <JobList defaultParams={{ page_size: 5 }} />}
|
||||
</div>
|
||||
</Tab>
|
||||
<Tab
|
||||
aria-label={i18n._(t`Recent Templates list tab`)}
|
||||
eventKey={2}
|
||||
title={
|
||||
<TabTitleText>{i18n._(t`Recent Templates`)}</TabTitleText>
|
||||
}
|
||||
>
|
||||
<div>
|
||||
{activeTabId === 2 && (
|
||||
<TemplateList defaultParams={{ page_size: 5 }} />
|
||||
)}
|
||||
</div>
|
||||
</Tab>
|
||||
</Tabs>
|
||||
</Card>
|
||||
</div>
|
||||
</MainPageSection>
|
||||
|
||||
Reference in New Issue
Block a user