Skip to content

Conversation

danny-avila
Copy link
Owner

Summary

Originally #7686

In testing we found that users who have low visions and use assistive technology had trouble identifying the correct LLM models in the submenu due to the low contrast between the active-item and surrounding background color. This PR adds a solid black indicator to the left border edge to indicate the current active item in sub-menus to add another visual cue to support people with low vision and making it easier to distinguish the current active item in the menu from other items.

Screen Recording of the submenu chages in dark and light mode.

This pull request addresses issue #7608 with the style outlined in the issue and in discussion of PR #6645.

Files touched:
client/src/components/Chat/Menus/Endpoints/CustomMenu.tsx @ line 162.

Added Tailwind classes:
data-[active-item]:border-l-2 -- left border, 2px width
data-[active-item]:rounded-l-none -- no border-radius on left
data-[active-item]:border-black -- border color is black
dark:data-[active-item]:border-white - change border color for dark mode

Change Type

Please delete any irrelevant options.

  • New feature (non-breaking change which adds functionality)

Testing

Manual keyboard testing.

Test Configuration:

MacOS Sequoia 15.3.2
Chrome/Safari/Firefox

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • My changes do not introduce new warnings

@danny-avila danny-avila linked an issue Jun 3, 2025 that may be closed by this pull request
@danny-avila danny-avila merged commit 1806b70 into dev Jun 3, 2025
6 checks passed
@danny-avila danny-avila deleted the a11y/llm-menu-visibility branch June 3, 2025 18:43
arthurolivierfortin pushed a commit to arthurolivierfortin/LibreChat-Fork that referenced this pull request Jun 4, 2025
…la#7714)

* feat[a11y]: add solid left border to improve visibility in LLM's submenu items.

* 🎨 style: Update CustomMenuItem class for improved border visibility

---------

Co-authored-by: Derek Jackson <[email protected]>
kenshinsamue pushed a commit to intelequia/LibreChat that referenced this pull request Aug 4, 2025
…la#7714)

* feat[a11y]: add solid left border to improve visibility in LLM's submenu items.

* 🎨 style: Update CustomMenuItem class for improved border visibility

---------

Co-authored-by: Derek Jackson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Low visibility/contrast on LLM submenu active items
2 participants