Skip to content

Commit

Permalink
fix: button-alligned center (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyzif authored Jun 13, 2024
1 parent b76773f commit d8c056d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/general/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface IButtonProps extends AntButtonProps {
}
export const Button = (props: IButtonProps) => {
const classMap = {
'with-new-icon': 'u-display-flex u-align-items-center',
'with-new-icon': 'u-display-flex u-align-items-center u-justify-center',
}

return (
Expand Down
4 changes: 4 additions & 0 deletions src/utils/utils.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
align-items: center !important;
}

.u-justify-center {
justify-content: center !important;
}

.u-padding-sm {
padding:var(--padding-sm) !important;
}

0 comments on commit d8c056d

Please sign in to comment.