From d6f23d1e1077a5e896ef1a9973a4b5c2d240b97e Mon Sep 17 00:00:00 2001 From: TJ Egan <tw15egan@gmail.com> Date: Wed, 14 Sep 2022 09:56:16 -0400 Subject: [PATCH] fix(Toggle): fix issue with side label when hideLabel is true --- packages/react/src/components/Toggle/Toggle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Toggle/Toggle.js b/packages/react/src/components/Toggle/Toggle.js index 1ee75f5a980e..7d47b6f5499b 100644 --- a/packages/react/src/components/Toggle/Toggle.js +++ b/packages/react/src/components/Toggle/Toggle.js @@ -42,7 +42,7 @@ export function Toggle({ } const isSm = size === 'sm'; - const sideLabel = hideLabel ? labelText : checked ? labelB : labelA; + const sideLabel = checked ? labelB : labelA; const wrapperClasses = classNames( `${prefix}--toggle`,