diff --git a/.vscode/settings.json b/.vscode/settings.json index 96ffba82e..d2bc4a69e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,9 +2,9 @@ "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.organizeImports": true, - "source.fixAll.stylelint": true + "source.fixAll.eslint": "explicit", + "source.organizeImports": "explicit", + "source.fixAll.stylelint": "explicit" }, "eslint.validate": ["html", "javascript", "javascriptreact", "typescript", "typescriptreact"], "cSpell.words": ["Medly"], diff --git a/packages/core/src/components/Toggle/Toggle.tsx b/packages/core/src/components/Toggle/Toggle.tsx index d657dce76..b26ca97cf 100644 --- a/packages/core/src/components/Toggle/Toggle.tsx +++ b/packages/core/src/components/Toggle/Toggle.tsx @@ -32,7 +32,7 @@ const Component: FC = memo( toggleId = useMemo(() => id || label?.toLocaleLowerCase().replace(/ +/g, '-') || 'medly-toggle-checkbox', [id, label]); return ( - + {label && (