Skip to content

Commit 200439f

Browse files
dpwatrousgingi
authored andcommitted
Checkbox shows label to the right when hideLabel is true
1 parent 4fc66d2 commit 200439f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/bonito-ui/src/components/form/checkbox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export function Checkbox<
2727
return (
2828
<FluentCheckbox
2929
id={id}
30+
label={param.hideLabel ? param.label : undefined}
3031
ariaLabel={ariaLabel ?? param.label}
3132
className={className}
3233
disabled={disabled || param.disabled}

0 commit comments

Comments
 (0)