Skip to content

💄 Fix dark mode hover contrast in API side menu#1131

Open
taras wants to merge 1 commit intov4from
fix/dark-mode-hover-contrast
Open

💄 Fix dark mode hover contrast in API side menu#1131
taras wants to merge 1 commit intov4from
fix/dark-mode-hover-contrast

Conversation

@taras
Copy link
Member

@taras taras commented Feb 28, 2026

Motivation

In dark mode, the API side menu links have poor contrast on hover. The hover:bg-gray-100 class creates a very light gray background that clashes with the dark theme.

Approach

Add dark:hover:bg-gray-800 to the menu link hover state, matching the pattern already used in the guides sidebar.

Before: hover:bg-gray-100 (light gray hover in both modes - poor contrast in dark mode)
After: hover:bg-gray-100 dark:hover:bg-gray-800 (appropriate contrast in both modes)

Visual Change

Mode Before After
Light Light gray hover Light gray hover (unchanged)
Dark Light gray hover (poor contrast) Dark gray hover (good contrast)

The fix ensures hover states in the sidebar navigation are clearly visible in dark mode, improving accessibility and user experience.

Add dark:hover:bg-gray-800 to menu links for proper contrast in dark mode.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 28, 2026

Open in StackBlitz

npm i https://pkg.pr.new/effection@1131

commit: b1c1520

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.

1 participant