pull/236636/head
Megan Rogge 2024-12-19 13:35:26 -06:00
parent d34e04970c
commit 9e613689d2
No known key found for this signature in database
GPG Key ID: B8E497F5C2C8EDE8
1 changed files with 2 additions and 1 deletions

View File

@ -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> {
@ -24,7 +25,7 @@ export class ChatAccessibilityProvider implements IListAccessibilityProvider<Cha
}
getRole(element: ChatTreeItem): AriaRole | undefined {
return 'listitem';
return isMacintosh ? 'listitem' : 'document';
}
getWidgetAriaLabel(): string {