Skip to content

Commit 9fe7aaa

Browse files
committed
fix: close button styling on DismissableBanner
1 parent 510d1a1 commit 9fe7aaa

File tree

1 file changed

+5
-3
lines changed
  • src/components/Banners/DismissableBanner

1 file changed

+5
-3
lines changed

src/components/Banners/DismissableBanner/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useEffect, useState } from "react"
2+
import { useTranslation } from "next-i18next"
23
import { MdClose } from "react-icons/md"
34

45
import { Button } from "@/components/ui/buttons/Button"
@@ -17,6 +18,7 @@ const DismissableBanner = ({
1718
storageKey,
1819
className,
1920
}: DismissableBannerProps) => {
21+
const { t } = useTranslation("common")
2022
const [show, setShow] = useState<boolean>(false)
2123

2224
useEffect(() => {
@@ -33,10 +35,10 @@ const DismissableBanner = ({
3335
<BannerNotification shouldShow={show} className={cn("gap-8", className)}>
3436
<Center className="ms-auto">{children}</Center>
3537
<Button
36-
className="ms-auto"
38+
className="ms-auto hover:shadow-none"
3739
onClick={onClose}
38-
aria-label="Close Banner"
39-
variant="ghost"
40+
aria-label={t("close")}
41+
size="sm"
4042
>
4143
<MdClose />
4244
</Button>

0 commit comments

Comments
 (0)