Skip to content

Commit

Permalink
add other props passthrough for Alert (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
eunicekokor authored Jan 27, 2022
1 parent c606a01 commit 77d671a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.0",
"version": "0.3.1",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const Alert = ({
onDismissClick,
banner = false,
extra,
...otherProps
}: AlertProps) => {
let variantStyle = useSeverityStyle(variant);

Expand All @@ -61,6 +62,7 @@ export const Alert = ({
}
return (
<div
{...otherProps}
css={css`
padding: ${theme.spacing.margin8}px ${theme.spacing.margin16}px;
border-radius: 4px;
Expand Down

0 comments on commit 77d671a

Please sign in to comment.