mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-03 14:50:19 +01:00
🔍 fix: Correct Conversations ARIA Role and Increase Placeholder Contrast (#12021)
- Set Conversations list role as "rowgroup", which better describes what is actually going on than "row". - Increased contrast on placeholder text in ChatForm.
This commit is contained in:
parent
8f7579c2f5
commit
c0236b4ba7
2 changed files with 2 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ const ChatForm = memo(({ index = 0 }: { index?: number }) => {
|
|||
const baseClasses = useMemo(
|
||||
() =>
|
||||
cn(
|
||||
'md:py-3.5 m-0 w-full resize-none py-[13px] placeholder-black/50 bg-transparent dark:placeholder-white/50 [&:has(textarea:focus)]:shadow-[0_2px_6px_rgba(0,0,0,.05)]',
|
||||
'md:py-3.5 m-0 w-full resize-none py-[13px] placeholder-black/60 bg-transparent dark:placeholder-white/60 [&:has(textarea:focus)]:shadow-[0_2px_6px_rgba(0,0,0,.05)]',
|
||||
isCollapsed ? 'max-h-[52px]' : 'max-h-[45vh] md:max-h-[55vh]',
|
||||
isMoreThanThreeRows ? 'pl-5' : 'px-5',
|
||||
),
|
||||
|
|
|
|||
|
|
@ -384,6 +384,7 @@ const Conversations: FC<ConversationsProps> = ({
|
|||
onRowsRendered={handleRowsRendered}
|
||||
tabIndex={-1}
|
||||
style={{ outline: 'none', scrollbarGutter: 'stable' }}
|
||||
containerRole="rowgroup"
|
||||
/>
|
||||
)}
|
||||
</AutoSizer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue