Skip to content

Commit

Permalink
Revert "fix(Toggle): fix issue with side label when hideLabel is true (
Browse files Browse the repository at this point in the history
…#12094)" (#12810)

This reverts commit 89f51a3.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tw15egan and kodiakhq[bot] authored Dec 8, 2022
1 parent c2a6dbb commit 0e42c3a
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 @@ -44,7 +44,7 @@ export function Toggle({
}

const isSm = size === 'sm';
const sideLabel = checked ? labelB : labelA;
const sideLabel = hideLabel ? labelText : checked ? labelB : labelA;

const wrapperClasses = classNames(
`${prefix}--toggle`,
Expand Down

0 comments on commit 0e42c3a

Please sign in to comment.