Skip to content

Commit 7f267d6

Browse files
committed
Merge branch 'a11y-create-event' of Arnei/opencast-admin-interface into develop
Pull request #1560 Fixing more a11y issues in the create event dialog
2 parents 5e5ee87 + 54458f6 commit 7f267d6

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

src/components/events/partials/ModalTabsAndPages/NewSourcePage.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ const Upload = <T extends RequiredFormPropsUpload>({
269269
formik.values.uploadAssetsTrack.map((asset, key) => (
270270
<tr key={key}>
271271
<td>
272-
<span className="title">
272+
<span id={`asset-title-${asset.id}`} className="title">
273273
{translateOverrideFallback(asset, t, "SHORT")}
274274
</span>
275-
<p>
275+
<p id={`asset-desc-${asset.id}`}>
276276
{translateOverrideFallback(asset, t, "DETAIL")}
277277
</p>
278278
</td>
@@ -310,6 +310,9 @@ const Upload = <T extends RequiredFormPropsUpload>({
310310
onChange={e =>
311311
handleChange(e, `uploadAssetsTrack.${key}.file`)
312312
}
313+
tabIndex={0}
314+
aria-labelledby={`asset-title-${asset.id}`}
315+
aria-describedby={`asset-desc-${asset.id}`}
313316
/>
314317
</div>
315318
</td>
@@ -324,6 +327,7 @@ const Upload = <T extends RequiredFormPropsUpload>({
324327
);
325328
(document.getElementById(asset.id) as HTMLInputElement).value = "";
326329
}}
330+
aria-label={t("EVENTS.EVENTS.NEW.SOURCE.UPLOAD.ARIA_REMOVE_FILE")}
327331
>
328332
<LuCircleX />
329333
</ButtonLikeAnchor>

src/components/shared/modals/ResourceDetailsAccessPolicyTab.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ export const AccessPolicyTable = <T extends AccessPolicyTabFormikProps>({
673673
arrayHelpers.remove(formik.values.policies.findIndex(p => p === policy))
674674
}
675675
className="action-cell-button remove"
676+
aria-label={t("EVENTS.EVENTS.DETAILS.ACCESS.ROLES.ARIA_REMOVE_ROLE")}
676677
>
677678
<LuCircleX />
678679
</ButtonLikeAnchor>

src/i18n/org/opencastproject/adminui/languages/lang-en_US.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@
549549
"SUBTITLES": {
550550
"SHORT": "Subtitles",
551551
"DETAIL": "A subtitle file in vtt format"
552-
}
552+
},
553+
"ARIA_REMOVE_FILE": "Remove uploaded file"
553554
},
554555
"DATE_TIME": {
555556
"CAPTION": "Schedule",
@@ -920,7 +921,8 @@
920921
"SANITIZATION_NOTE": "User role sanitization is enabled in your Opencast, therefore user roles are displayed alongside other roles. This does not impact role functionality in any way."
921922
},
922923
"ROLES": {
923-
"LABEL": "Select or create a role"
924+
"LABEL": "Select or create a role",
925+
"ARIA_REMOVE_ROLE": "Remove this role"
924926
}
925927
},
926928
"COMMENTS": {

0 commit comments

Comments
 (0)