Skip to content

Commit

Permalink
fix(button): secondary icon-only width (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arturo Castillo Delgado authored Jun 13, 2023
1 parent 6a32239 commit a4e2704
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/components/src/components/button/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,20 @@
padding-left: var(--spacing-x-icon-only);
padding-right: var(--spacing-x-icon-only);
}
.button--icon-only.button--variant-secondary {
padding-left: calc(var(--spacing-x-icon-only) - 1px);
padding-right: calc(var(--spacing-x-icon-only) - 1px);
}

.button--icon-only.button--size-small {
padding-left: var(--spacing-x-icon-only-small);
padding-right: var(--spacing-x-icon-only-small);
min-width: 32px;
}
.button--icon-only.button--size-small.button--variant-secondary {
padding-left: calc(var(--spacing-x-icon-only-small) - 1px);
padding-right: calc(var(--spacing-x-icon-only-small) - 1px);
}

.button--disabled {
cursor: not-allowed;
Expand Down

0 comments on commit a4e2704

Please sign in to comment.