Skip to content

Commit 79fdecc

Browse files
authored
fix: Buttons padding (#1843)
1 parent 9122000 commit 79fdecc

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

web_ui/packages/ui/src/button/button.component.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,14 @@ export const Button = (props: ButtonProps) => {
6363
? props.elementType
6464
: LinkBuilder({ href: props.href, target: props.target, rel: props.rel });
6565

66-
return <SpectrumButton {...props} elementType={elementType} variant={props.variant ?? 'accent'} />;
66+
return (
67+
<SpectrumButton
68+
{...props}
69+
elementType={elementType}
70+
variant={props.variant ?? 'accent'}
71+
UNSAFE_className={clsx(buttonClasses.button, props.UNSAFE_className)}
72+
/>
73+
);
6774
};
6875

6976
export const ActionButton = (props: ActionButtonProps) => {

web_ui/packages/ui/src/button/button.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.button {
2+
padding-block-start: var(--spectrum-global-dimension-size-40);
3+
padding-block-end: var(--spectrum-global-dimension-size-40);
4+
}
5+
16
.actionButtonDark {
27
border: var(--spectrum-alias-border-size-thin) solid transparent !important;
38

0 commit comments

Comments
 (0)