Skip to content

Commit

Permalink
fix #228599
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Dec 19, 2024
1 parent d34e049 commit 9e61368
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { AccessibilityVerbositySettingId } from '../../accessibility/browser/acc
import { IAccessibleViewService } from '../../../../platform/accessibility/browser/accessibleView.js';
import { ChatTreeItem } from './chat.js';
import { isRequestVM, isResponseVM, IChatResponseViewModel } from '../common/chatViewModel.js';
import { isMacintosh } from '../../../../base/common/platform.js';

export class ChatAccessibilityProvider implements IListAccessibilityProvider<ChatTreeItem> {

Expand All @@ -24,7 +25,7 @@ export class ChatAccessibilityProvider implements IListAccessibilityProvider<Cha
}

getRole(element: ChatTreeItem): AriaRole | undefined {
return 'listitem';
return isMacintosh ? 'listitem' : 'document';
}

getWidgetAriaLabel(): string {
Expand Down

0 comments on commit 9e61368

Please sign in to comment.