Skip to content

Commit

Permalink
fix: icon color triggered by wrong button
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelass committed Jan 24, 2024
1 parent 55bea04 commit d3e069a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions renderer/organisms/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ export function Layout({ children }: { children?: ReactNode }) {
)}
<IconButton
size="sm"
color={settingsOpen ? "neutral" : undefined}
variant={settingsOpen ? "solid" : undefined}
color={keyboardControlOpen ? "neutral" : undefined}
variant={keyboardControlOpen ? "solid" : undefined}
aria-label={`${feedbackOpen ? "close" : "open"} feedback`}
sx={{ position: "absolute", top: 0, right: 0 }}
onClick={() => {
setFeedbackOpen(!feedbackOpen);
setFeedbackOpen(!keyboardControlOpen);
}}
>
{feedbackOpen ? <CloseIcon /> : <FeedbackIcon />}
Expand Down Expand Up @@ -188,8 +188,8 @@ export function Layout({ children }: { children?: ReactNode }) {
)}
<IconButton
size="sm"
color={settingsOpen ? "primary" : undefined}
variant={settingsOpen ? "solid" : undefined}
color={keyboardControlOpen ? "primary" : undefined}
variant={keyboardControlOpen ? "solid" : undefined}
aria-label={`${keyboardControlOpen ? "close" : "open"} hotkeys`}
sx={{ position: "absolute", top: 0, left: 0 }}
onClick={() => {
Expand Down

0 comments on commit d3e069a

Please sign in to comment.