Skip to content

Commit 9a417e8

Browse files
authored
Merge pull request #880 from microsoft/accessibility-fix
Fix accessibility ordering issue
2 parents 664a9cc + 2a90bd6 commit 9a417e8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/app/collaborate/components/ActivityStreamWidget.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
QueryClientProvider,
1212
useQuery,
1313
} from '@tanstack/react-query'
14-
import { BellSlashIcon, CommentIcon, GitMergeIcon, GitPullRequestIcon, IssueOpenedIcon, IssueReopenedIcon, RepoIcon, SyncIcon } from '@primer/octicons-react';
14+
import { BellSlashIcon, RepoIcon, SyncIcon } from '@primer/octicons-react';
1515
import { formatDistanceToNow } from 'date-fns';
1616
import { GitHubDescriptionFromType, ShowOcticonForType } from '@/app/contributions/components/UpstreamContributionsWidget';
1717
import Link from 'next/link';
@@ -155,23 +155,23 @@ function ActivityStream() {
155155
const activities = data?.activities || [];
156156

157157
if (isPending) {
158-
return <>Discovering recent activity...</>;
158+
return <li>Discovering recent activity...</li>;
159159
}
160160

161161
if (error) {
162162
return (
163-
<div className="error">
163+
<li className="error">
164164
<p>There was an error loading recent activity.</p>
165165
<p>{error.message}</p>
166-
</div>
166+
</li>
167167
);
168168
}
169169

170170
if (!activities.length) {
171171
return (
172-
<div className="error">
172+
<li className="error">
173173
<p>No recent information to show.</p>
174-
</div>
174+
</li>
175175
);
176176
}
177177

0 commit comments

Comments
 (0)