diff --git a/.changeset/til-checkbox-fix.md b/.changeset/til-checkbox-fix.md new file mode 100644 index 0000000000..c56b8f67a1 --- /dev/null +++ b/.changeset/til-checkbox-fix.md @@ -0,0 +1,5 @@ +--- +"@cloudoperators/juno-ui-components": patch +--- + +fix(ui): align Checkbox vertically in flex rows diff --git a/.gitignore b/.gitignore index 485b1bbafe..a5dfa08020 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ act_*.json .out-of-code-insights .claude claude.md +.husky/prepare-commit-msg diff --git a/packages/ui-components/src/components/Checkbox/Checkbox.component.tsx b/packages/ui-components/src/components/Checkbox/Checkbox.component.tsx index 7afc19bf43..d1de0965f1 100644 --- a/packages/ui-components/src/components/Checkbox/Checkbox.component.tsx +++ b/packages/ui-components/src/components/Checkbox/Checkbox.component.tsx @@ -28,8 +28,8 @@ const wrapperStyles = ` const inputstyles = (disabled: boolean): string => { return ` - jn:w-4 - jn:h-4 + jn:absolute + jn:inset-0 jn:opacity-0 jn:z-50 ${disabled ? "jn:cursor-not-allowed" : "jn:cursor-pointer"} @@ -93,7 +93,6 @@ const successstyles = ` ` const labelStyles = ` - jn:leading-0 jn:ml-2 ` @@ -235,7 +234,7 @@ export const Checkbox = ({ const theId = id || uniqueId() return ( -