Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Sep 11, 2024
1 parent 8164a40 commit fc40919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/button-group.css.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import {createVar, style} from '@vanilla-extract/css';
import {style} from '@vanilla-extract/css';
import {sprinkles} from './sprinkles.css';
import * as mq from './media-queries.css';

const buttonLayoutSpacing = '16px';
const buttonLinkPadding = createVar();

export const vars = {buttonLinkPadding};

export const inline = style([
sprinkles({display: 'inline-flex', alignItems: 'center', flexDirection: 'row'}),
Expand Down
8 changes: 2 additions & 6 deletions src/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ export const ButtonLink = React.forwardRef<
>(({dataAttributes, ...props}, ref) => {
return (
<BaseButton
dataAttributes={{'component-name': 'ButtonLink', 'small-link': !!props.small, ...dataAttributes}}
dataAttributes={{'component-name': 'ButtonLink', ...dataAttributes}}
{...props}
ref={ref}
buttonType="link"
Expand All @@ -525,11 +525,7 @@ export const ButtonLinkDanger = React.forwardRef<TouchableElement, ButtonLinkPro
({dataAttributes, ...props}, ref) => {
return (
<BaseButton
dataAttributes={{
'component-name': 'ButtonLinkDanger',
'small-link': !!props.small,
...dataAttributes,
}}
dataAttributes={{'component-name': 'ButtonLinkDanger', ...dataAttributes}}
{...props}
withChevron={false}
ref={ref}
Expand Down

0 comments on commit fc40919

Please sign in to comment.