Skip to content

Commit

Permalink
Use IconButton in Alert
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieyan committed Oct 23, 2024
1 parent a0408fa commit ba24909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/alert/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { getClassNames } from '../utils/responsive-props'
import { Box } from '../box'
import { Button } from '../button'
import { IconButton } from '../button'
import { Columns, Column } from '../columns'

import { AlertIcon } from '../icons/alert-icon'
Expand Down Expand Up @@ -49,7 +49,7 @@ function Alert({ id, children, tone, closeLabel, onClose }: AlertProps) {
</Column>
{onClose != null && closeLabel != null ? (
<Column width="content">
<Button
<IconButton
variant="quaternary"
size="small"
onClick={onClose}
Expand Down

0 comments on commit ba24909

Please sign in to comment.