# issue: #7781 - [x] titlechip to 24px - [x] checkbox to 24px  
This commit is contained in:
@ -52,7 +52,10 @@ const StyledInputContainer = styled.div<InputProps>`
|
|||||||
|
|
||||||
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: ${({ theme }) => theme.spacing(1)};
|
padding: ${({ theme, checkboxSize }) =>
|
||||||
|
checkboxSize === CheckboxSize.Large
|
||||||
|
? theme.spacing(1.5)
|
||||||
|
: theme.spacing(1.25)};
|
||||||
position: relative;
|
position: relative;
|
||||||
${({ hoverable, isChecked, theme, indeterminate, disabled }) => {
|
${({ hoverable, isChecked, theme, indeterminate, disabled }) => {
|
||||||
if (!hoverable || disabled === true) return '';
|
if (!hoverable || disabled === true) return '';
|
||||||
@ -126,10 +129,9 @@ const StyledInput = styled.input<InputProps>`
|
|||||||
}
|
}
|
||||||
|
|
||||||
& + label > svg {
|
& + label > svg {
|
||||||
--padding: ${({ checkboxSize }) =>
|
--padding: 0px;
|
||||||
checkboxSize === CheckboxSize.Large ? '2px' : '1px'};
|
|
||||||
--size: ${({ checkboxSize }) =>
|
--size: ${({ checkboxSize }) =>
|
||||||
checkboxSize === CheckboxSize.Large ? '16px' : '12px'};
|
checkboxSize === CheckboxSize.Large ? '20px' : '14px'};
|
||||||
height: var(--size);
|
height: var(--size);
|
||||||
left: var(--padding);
|
left: var(--padding);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@ -66,7 +66,7 @@ const StyledContainer = withTheme(styled.div<
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: ${({ theme }) => theme.spacing(1)};
|
gap: ${({ theme }) => theme.spacing(1)};
|
||||||
height: ${({ theme }) => theme.spacing(3)};
|
height: ${({ theme }) => theme.spacing(4)};
|
||||||
max-width: ${({ maxWidth }) =>
|
max-width: ${({ maxWidth }) =>
|
||||||
maxWidth
|
maxWidth
|
||||||
? `calc(${maxWidth}px - 2 * var(--chip-horizontal-padding))`
|
? `calc(${maxWidth}px - 2 * var(--chip-horizontal-padding))`
|
||||||
|
|||||||
Reference in New Issue
Block a user