Skip to content

Commit

Permalink
Fix button icon width
Browse files Browse the repository at this point in the history
  • Loading branch information
calebjacob committed Nov 13, 2024
1 parent 90e95b6 commit 164f411
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@near-pagoda/ui",
"version": "2.0.16",
"version": "2.0.17",
"description": "A React component library that implements the official NEAR design system.",
"license": "MIT",
"repository": {
Expand Down
9 changes: 5 additions & 4 deletions src/components/Button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
--button-color-border: var(--violet-9) !important;
}

&[data-icon='true'] {
--button-width: calc(var(--button-height) - 2px); // Subtract border width
}

&[data-size='x-small'] {
--button-font: var(--text-xs);
--button-gap: 4px;
Expand All @@ -61,6 +57,11 @@
--button-padding-x: 24px;
}

&[data-icon='true'] {
--button-width: var(--button-height);
--button-padding-x: 0px;
}

&[data-variant='primary'] {
&[data-fill='ghost'],
&[data-fill='outline'] {
Expand Down

0 comments on commit 164f411

Please sign in to comment.