Skip to content

Commit 6059f62

Browse files
authored
Merge pull request #4628 from mastermaxx03/fix/activity-landmark-a11y-4606
frontend: Activity: Ensure complementary landmark has a valid label
2 parents 963ab10 + 7c23348 commit 6059f62

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

frontend/src/components/activity/Activity.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const makeActivity = (activity: Partial<Activity>): Activity => ({
6464
id: 'id',
6565
location: 'window',
6666
content: 'Activity Content',
67+
title: activity.title,
6768
...activity,
6869
});
6970

frontend/src/components/activity/Activity.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ export function SingleActivityRenderer({
328328
<ActivityContext.Provider value={activity}>
329329
<Box
330330
role="complementary"
331+
aria-label={typeof title === 'string' ? title : undefined}
331332
sx={{
332333
display: minimized && !isOverview ? 'none' : undefined,
333334
gridColumn: '2 / 3',

0 commit comments

Comments
 (0)