Skip to content

Commit

Permalink
fix(Toggle): fix issue with side label when hideLabel is true
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Sep 14, 2022
1 parent c66e77f commit d6f23d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Toggle/Toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit d6f23d1

Please sign in to comment.