diff --git a/packages/react/src/components/Toggle/Toggle-test.js b/packages/react/src/components/Toggle/Toggle-test.js index fce60037e1fc..5e3f25d50182 100644 --- a/packages/react/src/components/Toggle/Toggle-test.js +++ b/packages/react/src/components/Toggle/Toggle-test.js @@ -122,12 +122,5 @@ describe('Toggle', () => { const svg = wrapper.find(`.${prefix}--toggle__check`); expect(svg.length).toBe(1); }); - - it('Does not render toggle text', () => { - const offLabel = wrapper.find(`.${prefix}--toggle__text--off`); - const onLabel = wrapper.find(`.${prefix}--toggle__text--on`); - expect(offLabel.length).toBe(0); - expect(onLabel.length).toBe(0); - }); }); }); diff --git a/packages/react/src/components/Toggle/Toggle.js b/packages/react/src/components/Toggle/Toggle.js index bc411c80b8a7..1a0310fcb886 100644 --- a/packages/react/src/components/Toggle/Toggle.js +++ b/packages/react/src/components/Toggle/Toggle.js @@ -152,20 +152,12 @@ class Toggle extends React.Component { )} - {!size && ( - <> - - - - )} + +