-
-
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
Style room header icons and facepile for toggled state #28968
Conversation
So that we track changes to the right panel phases
We do this so that we can get by using a single event listener i.e we only need to call `useCurrentPhase` in the provider as opposed to calling it in each header icon.
and adds a class name when the corresponding panel is open
eeb1852
to
d52937d
Compare
@@ -0,0 +1,30 @@ | |||
/* | |||
Copyright 2024 New Vector Ltd. |
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.
2025?
@@ -0,0 +1,23 @@ | |||
/* | |||
Copyright 2024 New Vector Ltd. |
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.
2025?
@@ -0,0 +1,34 @@ | |||
/* | |||
Copyright 2024 New Vector Ltd. |
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.
2025?
@@ -0,0 +1,45 @@ | |||
/* | |||
Copyright 2024 New Vector Ltd. |
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.
2025?
import { useToggled } from "./useToggled"; | ||
|
||
type Props = { | ||
Icon: React.ComponentType<any>; |
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.
using any here is weak, that doesn't even guarantee the component accepts className
as it is used
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.
Done in 7bd3033
For https://github.com/element-hq/wat-internal/issues/240 and https://github.com/element-hq/wat-internal/issues/242
According to the figma designs, the toggled on state of the room header buttons should look like:
and the face pile should look like: