Skip to content

Commit

Permalink
fix(AlertButton): padding was not correct when there was an icon (#3778)
Browse files Browse the repository at this point in the history
  • Loading branch information
DSil committed Mar 27, 2023
1 parent eb1fc82 commit e2feb34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/orbit-components/src/Alert/AlertButton/index.tsx
Expand Up @@ -11,7 +11,7 @@ import { SIZE_OPTIONS } from "../../primitives/ButtonPrimitive/common/consts";
import type { Props } from "./types";

const AlertButton = React.forwardRef<HTMLButtonElement, Props>(
({ type = TYPE_OPTIONS.INFO, children, disabled = false, ...props }, ref) => {
({ type = TYPE_OPTIONS.INFO, disabled = false, ...props }, ref) => {
const theme = useTheme();
const propsWithTheme = { theme, ...props };
const commonProps = getCommonProps({ ...propsWithTheme, size: SIZE_OPTIONS.SMALL });
Expand All @@ -29,9 +29,7 @@ const AlertButton = React.forwardRef<HTMLButtonElement, Props>(
{...buttonStyles}
{...commonProps}
{...icons}
>
{children}
</ButtonPrimitive>
/>
);
},
);
Expand Down

0 comments on commit e2feb34

Please sign in to comment.