mirror of
https://github.com/ansible/awx.git
synced 2026-05-02 23:25:29 -02:30
updated aria label for activity stream type select
This commit is contained in:
@@ -37,7 +37,7 @@ function ActivityStream({ i18n }) {
|
|||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const urlParams = new URLSearchParams(location.search);
|
const urlParams = new URLSearchParams(location.search);
|
||||||
|
|
||||||
const activityStreamType = urlParams.get('type');
|
const activityStreamType = urlParams.get('type') || 'all';
|
||||||
|
|
||||||
let typeParams = {};
|
let typeParams = {};
|
||||||
|
|
||||||
@@ -118,11 +118,14 @@ function ActivityStream({ i18n }) {
|
|||||||
<Title size="2xl" headingLevel="h2">
|
<Title size="2xl" headingLevel="h2">
|
||||||
{i18n._(t`Activity Stream`)}
|
{i18n._(t`Activity Stream`)}
|
||||||
</Title>
|
</Title>
|
||||||
|
<span id="grouped-type-select-id" hidden>
|
||||||
|
{i18n._(t`Activity Stream type selector`)}
|
||||||
|
</span>
|
||||||
<Select
|
<Select
|
||||||
width="250px"
|
width="250px"
|
||||||
maxHeight="480px"
|
maxHeight="480px"
|
||||||
variant={SelectVariant.single}
|
variant={SelectVariant.single}
|
||||||
aria-label={i18n._(t`Activity Stream type selector`)}
|
aria-labelledby="grouped-type-select-id"
|
||||||
className="activityTypeSelect"
|
className="activityTypeSelect"
|
||||||
onToggle={setIsTypeDropdownOpen}
|
onToggle={setIsTypeDropdownOpen}
|
||||||
onSelect={(event, selection) => {
|
onSelect={(event, selection) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user