mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 03:40:14 +01:00
👐 a11y: New Chat button - focus, mobile label, collapsed sidebar label (#4069)
This commit is contained in:
parent
94d1afee84
commit
d096c281ba
3 changed files with 10 additions and 6 deletions
|
|
@ -19,7 +19,8 @@ export default function MobileNav({
|
|||
<button
|
||||
type="button"
|
||||
data-testid="mobile-header-new-chat-button"
|
||||
className="inline-flex size-10 items-center justify-center rounded-full hover:bg-surface-hover"
|
||||
aria-label={localize('com_nav_open_sidebar')}
|
||||
className="m-1 inline-flex size-10 items-center justify-center rounded-full hover:bg-surface-hover"
|
||||
onClick={() =>
|
||||
setNavVisible((prev) => {
|
||||
localStorage.setItem('navVisible', JSON.stringify(!prev));
|
||||
|
|
@ -49,7 +50,8 @@ export default function MobileNav({
|
|||
</h1>
|
||||
<button
|
||||
type="button"
|
||||
className="inline-flex size-10 items-center justify-center rounded-full hover:bg-surface-hover"
|
||||
aria-label={localize('com_ui_new_chat')}
|
||||
className="m-1 inline-flex size-10 items-center justify-center rounded-full hover:bg-surface-hover"
|
||||
onClick={() => newConversation()}
|
||||
>
|
||||
<svg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue