Skip to content

Commit

Permalink
Remove hover and auto-close for the switch
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyweight committed Jan 24, 2025
1 parent 892fda8 commit a935550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
22 changes: 0 additions & 22 deletions packages/help-center/src/components/help-center-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,6 @@
padding: 0 4px;
}

:hover, :focus {
background-color: $help-center-blue;
color: var(--studio-white);

svg {
fill: var(--studio-white);
}

.conversation-menu__notification-toggle {
.components-form-toggle {
&.is-checked {
.components-form-toggle__track {
background-color: var(--studio-white);
}
}
.components-form-toggle__thumb {
background-color: $help-center-blue;
}
}
}
}

button {
display: flex;
align-items: center;
Expand Down
3 changes: 2 additions & 1 deletion packages/help-center/src/components/help-center-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ const ChatEllipsisMenu = () => {
recordTracksEvent( 'calypso_inlinehelp_clear_conversation' );
};

const toggleSoundNotifications = () => {
const toggleSoundNotifications = ( event: React.MouseEvent< HTMLButtonElement > ) => {
event.stopPropagation();
setAreSoundNotificationsEnabled( ! areSoundNotificationsEnabled );
};

Expand Down

0 comments on commit a935550

Please sign in to comment.