diff --git a/src/components/ui/Checkbox.scss b/src/components/ui/Checkbox.scss index 9387ef290..4f1555dba 100644 --- a/src/components/ui/Checkbox.scss +++ b/src/components/ui/Checkbox.scss @@ -86,7 +86,11 @@ } .Checkbox-main { - flex: 1; + display: grid; + grid-template-columns: 1fr auto; + grid-template-rows: auto auto; + align-items: center; + flex-grow: 1; &::before, &::after { @@ -124,14 +128,18 @@ } .right-icon { + grid-column: 2; + grid-row: span 2; margin-left: auto; margin-right: 0.5rem; color: var(--color-text-secondary); font-size: 1.25rem; + align-self: center; } .subLabel { - display: block; + grid-column: 1; + grid-row: 2; font-size: 0.875rem; line-height: 1rem; color: var(--color-text-secondary); diff --git a/src/components/ui/Checkbox.tsx b/src/components/ui/Checkbox.tsx index 72383439a..050b07ff9 100644 --- a/src/components/ui/Checkbox.tsx +++ b/src/components/ui/Checkbox.tsx @@ -155,9 +155,9 @@ const Checkbox: FC = ({ {leftElement} {typeof label === 'string' ? renderText(label) : label} {labelText && {renderText(labelText)}} - {rightIcon && } {subLabel && {renderText(subLabel)}} + {rightIcon && } {nestedCheckbox && (