diff --git a/ui/components/ui/toggle-button/toggle-button.component.js b/ui/components/ui/toggle-button/toggle-button.component.js index c54f0bbd8..ef28fec8a 100644 --- a/ui/components/ui/toggle-button/toggle-button.component.js +++ b/ui/components/ui/toggle-button/toggle-button.component.js @@ -47,7 +47,7 @@ const colors = { }; const ToggleButton = (props) => { - const { value, onToggle, offLabel, onLabel, disabled } = props; + const { value, onToggle, offLabel, onLabel, disabled, className } = props; const modifier = value ? 'on' : 'off'; @@ -59,9 +59,14 @@ const ToggleButton = (props) => { onToggle(value); } }} - className={classnames('toggle-button', `toggle-button--${modifier}`, { - 'toggle-button--disabled': disabled, - })} + className={classnames( + 'toggle-button', + `toggle-button--${modifier}`, + { + 'toggle-button--disabled': disabled, + }, + className, + )} >