fix(core): checkbox property styling and layout (#8645)

fix BS-1725
This commit is contained in:
pengx17
2024-10-31 07:31:52 +00:00
parent 0f8b273134
commit 2b3b7057c5
3 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,11 @@
import { cssVar } from '@toeverything/theme'; import { cssVarV2 } from '@toeverything/theme/v2';
import { style } from '@vanilla-extract/css'; import { style } from '@vanilla-extract/css';
export const checkboxProperty = style({ export const checkboxProperty = style({
fontSize: cssVar('fontH5'), fontSize: 24,
color: cssVarV2('icon/primary'),
});
export const container = style({
padding: 4,
}); });

View File

@@ -14,7 +14,7 @@ export const CheckboxValue = ({ value, onChange }: PropertyValueProps) => {
[onChange, parsedValue] [onChange, parsedValue]
); );
return ( return (
<PropertyValue onClick={handleClick}> <PropertyValue onClick={handleClick} className={styles.container}>
<Checkbox <Checkbox
className={styles.checkboxProperty} className={styles.checkboxProperty}
checked={parsedValue} checked={parsedValue}

View File

@@ -15,7 +15,6 @@ export const section = style({
export const cell = style({ export const cell = style({
display: 'flex', display: 'flex',
gap: 4,
}); });
export const divider = style({ export const divider = style({