-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First step to add header to new room list #29320
Conversation
b2e0c51
to
b86effa
Compare
<Flex | ||
as="header" | ||
className="mx_RoomListHeaderView" | ||
aria-label={_t("room|context_menu|title")} | ||
justify="space-between" | ||
align="center" | ||
> | ||
<h1>{vm.title}</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the header
and h1
tag here in terms of a11y. Is it better to have an aside
instead (like in the current room list)?
b86effa
to
6d796b0
Compare
|
||
/** | ||
* View model for the RoomListHeader. | ||
* The actions don't work when called in a space yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will change when we will implement the menu for the spaces. Until it's implemented, the menu is not render for spaces and the actions are not called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Task https://github.com/element-hq/wat-internal/issues/204
Figma design
This PR is a first step to add the header of the new room list:
This PR doesn't implement all the features of the design:
Visual
Screen.Recording.2025-02-19.at.15.22.08.mov