Skip to content

Commit 77a2171

Browse files
authored
⌨️ a11y: enhance accessibility & visual consistency (danny-avila#6866)
* a11y: TemporaryChat label * style: ChatForm badges update
1 parent d0332c6 commit 77a2171

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

client/src/components/Chat/Input/MCPSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function MCPSelect({ conversationId }: { conversationId?: string | null }) {
115115
className="badge-icon min-w-fit"
116116
selectIcon={<MCPIcon className="icon-md text-text-primary" />}
117117
selectItemsClassName="border border-blue-600/50 bg-blue-500/10 hover:bg-blue-700/10"
118-
selectClassName="group relative inline-flex items-center justify-center md:justify-start gap-1.5 rounded-full border border-border-medium text-sm font-medium transition-shadow md:w-full size-9 p-2 md:p-3 bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner"
118+
selectClassName="group relative inline-flex items-center justify-center md:justify-start gap-1.5 rounded-full border border-border-medium text-sm font-medium transition-all md:w-full size-9 p-2 md:p-3 bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner"
119119
/>
120120
);
121121
}

client/src/components/Chat/TemporaryChat.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export function TemporaryChat() {
4343
render={
4444
<motion.button
4545
onClick={handleBadgeToggle}
46+
aria-label={localize(temporaryBadge.label)}
4647
className={cn(
4748
'inline-flex size-10 flex-shrink-0 items-center justify-center rounded-lg border border-border-light text-text-primary transition-all ease-in-out hover:bg-surface-tertiary',
4849
isTemporary

client/src/components/ui/CheckboxButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export default function CheckboxButton({
4141
// Base styling from MultiSelect's selectClassName
4242
'group relative inline-flex items-center justify-center gap-1.5',
4343
'rounded-full border border-border-medium text-sm font-medium',
44-
'size-9 p-2 transition-shadow md:w-full md:p-3',
45-
'bg-surface-chat shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner',
44+
'size-9 p-2 transition-all md:w-full md:p-3',
45+
'bg-transparent shadow-sm hover:bg-surface-hover hover:shadow-md active:shadow-inner',
4646

4747
// Checked state styling
4848
isChecked && isCheckedClassName && isCheckedClassName,

0 commit comments

Comments
 (0)