updated aria label for activity stream type select

This commit is contained in:
John Mitchell
2021-01-21 15:31:08 -05:00
parent 00e837c17c
commit 7d495713ee

View File

@@ -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) => {