Various frontend fixes for roles pages (#10654)

This commit is contained in:
Weiko
2025-03-04 18:09:23 +01:00
committed by GitHub
parent 4bf8af472a
commit 5d2be60758
14 changed files with 147 additions and 141 deletions

View File

@ -102,7 +102,7 @@ const StyledInput = styled.input<InputProps>`
checkboxSize === CheckboxSize.Large ? '18px' : '12px'};
background: ${({ theme, indeterminate, isChecked, disabled }) =>
disabled && isChecked
? theme.color.blue
? theme.adaptiveColors.blue3
: indeterminate || isChecked
? theme.color.blue
: 'transparent'};
@ -115,9 +115,9 @@ const StyledInput = styled.input<InputProps>`
}) => {
switch (true) {
case isChecked:
return theme.color.blue;
return disabled ? theme.adaptiveColors.blue3 : theme.color.blue;
case disabled:
return theme.background.transparent.medium;
return theme.border.color.strong;
case indeterminate || isChecked:
return theme.color.blue;
case variant === CheckboxVariant.Primary:
@ -166,7 +166,7 @@ export const Checkbox = ({
variant = CheckboxVariant.Primary,
size = CheckboxSize.Small,
shape = CheckboxShape.Squared,
hoverable = false,
hoverable = true,
className,
disabled = false,
}: CheckboxProps) => {