Skip to content

Commit

Permalink
fix(core): checkbox property styling and layout (#8645)
Browse files Browse the repository at this point in the history
fix BS-1725
  • Loading branch information
pengx17 committed Oct 31, 2024
1 parent 0f8b273 commit 2b3b705
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { cssVar } from '@toeverything/theme';
import { cssVarV2 } from '@toeverything/theme/v2';
import { style } from '@vanilla-extract/css';

export const checkboxProperty = style({
fontSize: cssVar('fontH5'),
fontSize: 24,
color: cssVarV2('icon/primary'),
});

export const container = style({
padding: 4,
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const CheckboxValue = ({ value, onChange }: PropertyValueProps) => {
[onChange, parsedValue]
);
return (
<PropertyValue onClick={handleClick}>
<PropertyValue onClick={handleClick} className={styles.container}>
<Checkbox
className={styles.checkboxProperty}
checked={parsedValue}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const section = style({

export const cell = style({
display: 'flex',
gap: 4,
});

export const divider = style({
Expand Down

0 comments on commit 2b3b705

Please sign in to comment.