Skip to content

Commit 735fa4a

Browse files
committed
making clickable surface of local complete size of the button
1 parent 9967aa1 commit 735fa4a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

apps/builder/app/builder/features/style-panel/style-source/style-source-control.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -318,20 +318,13 @@ export const StyleSourceControl = ({
318318
disabled={disabled}
319319
aria-current={selected && state === undefined}
320320
role="button"
321+
onClick={onSelect}
321322
hasError={error !== undefined}
322323
>
323-
<Flex
324-
grow
325-
css={{
326-
position: "relative",
327-
paddingBlock: theme.spacing[3],
328-
paddingInline: theme.spacing[4],
329-
}}
330-
>
324+
<Flex grow css={{ padding: theme.spacing[2] }}>
331325
<StyleSourceButton
332326
disabled={disabled || isEditing}
333327
isEditing={isEditing}
334-
onClick={onSelect}
335328
tabIndex={-1}
336329
>
337330
<Flex align="center" justify="center" gap="1">

0 commit comments

Comments
 (0)