diff --git a/src/components/calcite-radio-button/calcite-radio-button.scss b/src/components/calcite-radio-button/calcite-radio-button.scss index 7ccc8f777bd..08eeb51c739 100644 --- a/src/components/calcite-radio-button/calcite-radio-button.scss +++ b/src/components/calcite-radio-button/calcite-radio-button.scss @@ -1,7 +1,10 @@ :host { @apply cursor-pointer inline-block; } -:host([labeled]) { +.container { + @apply inline-flex; +} +.container--labeled { @apply mb-0 items-center inline-flex gap-2; } :host([disabled]) { @@ -10,7 +13,7 @@ @apply cursor-default; } } -:host([scale="s"][labeled]) { +:host([scale="s"]) .container--labeled { @apply mb-2 mr-3; @supports not (display: grid) { calcite-radio { @@ -18,7 +21,7 @@ } } } -:host([scale="m"][labeled]) { +:host([scale="m"]) .container--labeled { @apply mb-2 mr-4; @supports not (display: grid) { calcite-radio { @@ -26,7 +29,7 @@ } } } -:host([scale="l"][labeled]) { +:host([scale="l"]) .container--labeled { @apply gap-3 mb-2 mr-5; @supports not (display: grid) { calcite-radio { diff --git a/src/components/calcite-radio-button/calcite-radio-button.tsx b/src/components/calcite-radio-button/calcite-radio-button.tsx index 4c976446f89..bdfac8bce18 100644 --- a/src/components/calcite-radio-button/calcite-radio-button.tsx +++ b/src/components/calcite-radio-button/calcite-radio-button.tsx @@ -353,32 +353,34 @@ export class CalciteRadioButton { render(): VNode { return ( - - -