Skip to content

Commit ede8b3d

Browse files
committed
temp
1 parent a0ba73f commit ede8b3d

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

packages/assets/src/scss/inputs/_checkbox.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
display: block;
2323
width: calculateRem(8px);
2424
height: calculateRem(5px);
25-
border-left: calculateRem(2px) solid $color-neutral-10;
26-
border-bottom: calculateRem(2px) solid $color-neutral-10;
25+
border-left: calculateRem(2px) solid transparent;
26+
border-bottom: calculateRem(2px) solid transparent;
2727
transform: rotate(-45deg);
2828
}
2929

packages/components/src/inputs/Checkbox/Checkbox.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const Checkbox = ({
1717
error = false,
1818
extraAria = {},
1919
id = undefined,
20+
inputClassName = '',
2021
ref,
2122
required = false,
2223
title = '',
@@ -42,6 +43,7 @@ const Checkbox = ({
4243
return (
4344
<div className={checkboxClassName}>
4445
<BaseInput
46+
className={inputClassName}
4547
disabled={disabled}
4648
error={error}
4749
extraInputAttrs={{

packages/components/src/inputs/Checkbox/Checkbox.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface CheckboxProps extends BaseComponentAriaAttributes {
1111
disabled?: boolean;
1212
error?: boolean;
1313
id?: string;
14+
inputClassName?: string;
1415
ref?: Ref<HTMLInputElement>;
1516
required?: boolean;
1617
value?: boolean;

packages/components/src/inputs/ThreeStateCheckbox/ThreeStateCheckbox.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ const ThreeStateCheckbox = ({ className = '', indeterminate = false, ...restProp
1111
'ids-checkbox--three-state': true,
1212
[className]: true,
1313
});
14+
const inputClassName = createCssClassNames({
15+
'ids-input--indeterminate': indeterminate,
16+
});
1417

1518
return (
1619
<Checkbox
1720
className={checkboxClassName}
21+
inputClassName={inputClassName}
1822
ref={(node) => {
1923
if (node) {
2024
node.indeterminate = indeterminate; // eslint-disable-line no-param-reassign

0 commit comments

Comments
 (0)