Skip to content

Commit 06cef41

Browse files
committed
fix(webui): label history scroll region for keyboard users
1 parent 22997f4 commit 06cef41

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

dashboard/src/views/ConversationPage.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@
202202
v-else
203203
class="conversation-messages-container"
204204
style="background-color: var(--v-theme-surface);"
205+
role="region"
206+
:aria-label="tm('history.title')"
205207
tabindex="0"
206208
@wheel.stop>
207209
<!-- 空对话提示 -->
@@ -1113,6 +1115,11 @@ export default {
11131115
background-color: #f9f9f9;
11141116
}
11151117
1118+
.conversation-messages-container:focus-visible {
1119+
outline: 2px solid rgba(var(--v-theme-primary), 0.6);
1120+
outline-offset: 2px;
1121+
}
1122+
11161123
/* 暗色模式下的聊天消息容器 */
11171124
.v-theme--dark .conversation-messages-container {
11181125
background-color: #1e1e1e;

0 commit comments

Comments
 (0)