From fed74afffe10dc7c8c13937aee3b801491b85cf2 Mon Sep 17 00:00:00 2001 From: Horatiu Muresan <39557534+horymury@users.noreply.github.com> Date: Tue, 28 Feb 2023 16:47:00 +0200 Subject: [PATCH] fix(sound-settings) Disable checkbox for disabled sounds (#12976) --- .../base/ui/components/web/Checkbox.tsx | 7 +++++-- .../settings/components/web/SoundsTab.tsx | 20 ++++++++++++------- react/features/settings/functions.any.ts | 1 + 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/react/features/base/ui/components/web/Checkbox.tsx b/react/features/base/ui/components/web/Checkbox.tsx index 9bf4c1c8c8..6051e1e02f 100644 --- a/react/features/base/ui/components/web/Checkbox.tsx +++ b/react/features/base/ui/components/web/Checkbox.tsx @@ -53,6 +53,10 @@ const useStyles = makeStyles()(theme => { } }, + disabled: { + cursor: 'not-allowed' + }, + activeArea: { display: 'grid', placeContent: 'center', @@ -73,7 +77,6 @@ const useStyles = makeStyles()(theme => { height: '18px', border: `2px solid ${theme.palette.icon03}`, borderRadius: '3px', - cursor: 'pointer', display: 'grid', placeContent: 'center', @@ -154,7 +157,7 @@ const Checkbox = ({ return (