@@ -9,6 +9,7 @@ import type { Lang } from "@/lib/types"
9
9
import { Button } from "@/components/ui/buttons/Button"
10
10
import { Flex } from "@/components/ui/flex"
11
11
12
+ import { cn } from "@/lib/utils/cn"
12
13
import { isLangRightToLeft } from "@/lib/utils/translations"
13
14
14
15
import Emoji from "./Emoji"
@@ -41,11 +42,15 @@ const TranslationBanner = ({
41
42
? "translation-banner-body-new"
42
43
: "translation-banner-body-update"
43
44
44
- if ( ! isOpen ) return null
45
-
46
45
return (
47
- < aside className = "fixed bottom-0 end-0 z-50 md:bottom-8 md:end-8" dir = { dir } >
48
- < div className = "bg-info-banner relative max-h-full max-w-full p-4 text-neutral-900 shadow-md md:max-w-[600px] md:rounded-sm" >
46
+ < aside
47
+ className = { cn (
48
+ "fixed bottom-0 end-0 z-popover md:bottom-8 md:end-8" ,
49
+ isOpen ? "block" : "hidden"
50
+ ) }
51
+ dir = { dir }
52
+ >
53
+ < div className = "bg-infoBanner relative max-h-full max-w-full p-4 text-neutral-900 shadow-md md:max-w-[600px] md:rounded-sm" >
49
54
< Flex className = "m-4 mt-10 flex-col sm:mt-4" >
50
55
< Flex className = "mb-4 flex-col-reverse items-start sm:flex-row sm:items-center" >
51
56
< h3 className = "my-0 text-2xl font-bold leading-none" >
@@ -59,7 +64,7 @@ const TranslationBanner = ({
59
64
< p > { t ( bodyTextId ) } </ p >
60
65
< Flex className = "flex-col items-start sm:flex-row sm:items-center" >
61
66
< div >
62
- < Button asChild variant = "solid " >
67
+ < Button asChild variant = "link " >
63
68
< Link href = "/contributing/translation-program/" >
64
69
{ t ( "translation-banner-button-translate-page" ) }
65
70
</ Link >
0 commit comments