diff --git a/packages/calcite-components/src/components/block-section/block-section.scss b/packages/calcite-components/src/components/block-section/block-section.scss index 3d90065ae6d..0761e534cb6 100644 --- a/packages/calcite-components/src/components/block-section/block-section.scss +++ b/packages/calcite-components/src/components/block-section/block-section.scss @@ -62,6 +62,7 @@ .toggle--switch-container { @apply flex items-center relative bg-transparent w-full; + word-break: break-word; .focus-guard { --calcite-label-margin-bottom: 0; @@ -89,4 +90,10 @@ color: theme("colors.danger"); } +:host([toggle-display="switch"]) .toggle { + .toggle--switch__content { + @apply me-7; + } +} + @include base-component(); diff --git a/packages/calcite-components/src/components/block/block.stories.ts b/packages/calcite-components/src/components/block/block.stories.ts index 4894cac830b..e238a92727c 100644 --- a/packages/calcite-components/src/components/block/block.stories.ts +++ b/packages/calcite-components/src/components/block/block.stories.ts @@ -312,3 +312,15 @@ export const scrollingContainerSetup_TestOnly = (): string => html`