Skip to content

Conversation

@RudraPrasad001
Copy link

Description
This PR implements improved visual styling for the room list items in Element Web, addressing accessibility and contrast requirements for selected and hover states.

What has been changed:
Selected State:

Added a curved vertical indicator (4px width, #007a61 color) on the left side of selected room items

Implemented a subtle background color (#e1e6ec) with an 8px gap between the indicator and background for better visual separation

Applied rounded corners (8px border-radius) to both the indicator and background for a modern, polished appearance

Used CSS pseudo-elements (::before and ::after) to achieve the layered design with proper z-index management

Hover State:

Applied a background color using the theme variable var(--cpd-color-bg-action-secondary-hovered) on hover

Added a smooth left shift animation (8px translateX) for room avatar and content on hover to provide interactive feedback

Ensured hover effects do not apply to already-selected items using :not(.mx_RoomListItemView_selected) selectors to prevent visual conflicts

Transitions:

Added smooth 0.2s ease transitions for all state changes to enhance user experience

How it achieves the goal:
The implementation provides stronger visual contrast between default, hover, and selected states, making it easier for users to identify their current location in the room list. The curved indicator design with proper spacing creates a clear visual hierarchy while meeting accessibility standards for color contrast ratios.​

screenshot_2026-01-09_00-43-28

The user "Santhosh Kumar" is being hovered and "Matrix.org" account is being selected, it is styled as required.

Checklist

@RudraPrasad001 RudraPrasad001 requested a review from a team as a code owner January 8, 2026 19:24
@github-actions github-actions bot added the Z-Community-PR Issue is solved by a community member's PR label Jan 8, 2026
@t3chguy t3chguy requested a review from a team January 8, 2026 19:25
@RudraPrasad001
Copy link
Author

screenshot_2026-01-09_01-29-50 image

Handles Both Light Theme and Dark Theme now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Z-Community-PR Issue is solved by a community member's PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant