Skip to content

Commit

Permalink
Make hoverOutline defauls
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Dec 6, 2021
1 parent 9341740 commit c48ec97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/IconButton/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export type IconButtonProps<T extends React.ElementType = "button"> = Omit<
};

export const IconButton: React.FC<IconButtonProps> = React.forwardRef(
({ className, error, hoverOutline, variant = "primary", ...props }, ref) => {
(
{ className, error, hoverOutline = true, variant = "primary", ...props },
ref
) => {
const classes = useStyles();

if (variant === "secondary") {
Expand Down
10 changes: 5 additions & 5 deletions stories/buttons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ const DefaultStory: React.FC = () => {
<FormControlLabel
control={
<IconButton variant="secondary">
<ArrowDownward />
<DeleteIcon />
</IconButton>
}
label="Expand"
label="Delete from list"
/>
<FormControlLabel
control={
<IconButton hoverOutline variant="secondary">
<DeleteIcon />
<IconButton hoverOutline={false} variant="secondary">
<ArrowDownward />
</IconButton>
}
label="Delete from list"
label="Expand"
/>
<FormControlLabel
control={
Expand Down

0 comments on commit c48ec97

Please sign in to comment.