File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ type Props = Links & {
25
25
26
26
const defaultStyles = {
27
27
container :
28
- "dark:text-bdp-white dark:shadow-dark-light gap-2 flex items-center justify-between w-full px-2 sm:px-4 shadow-md transition-all duration-200 ease-in-out text-center" ,
28
+ "dark:text-bdp-white dark:shadow-dark-light gap-2 flex items-center justify-between w-full px-2 sm:px-4 shadow-md transition-all duration-200 ease-in-out text-center h-auto opacity-100 max-h-[200px] " ,
29
29
bannerInfoContainer : `flex flex-col flex-[1_1_auto]` ,
30
30
headingText : "font-semibold text-sm md:text-lg" ,
31
31
bodyText : "text-sm md:text-base" ,
@@ -49,15 +49,14 @@ export function Banner({
49
49
data-has-heading = { Boolean ( headingText ) }
50
50
className = { cn (
51
51
defaultStyles . container ,
52
- "data-[has-heading='true']:h-16" ,
53
- "data-[has-heading='false']:h-12" ,
54
- "data-[show-banner='false']:h-0 overflow-hidden" ,
52
+ "data-[show-banner='false']:max-h-[0] overflow-hidden" ,
55
53
styles . container ,
56
54
) }
57
55
>
58
56
< div
59
57
className = { cn (
60
58
defaultStyles . bannerInfoContainer ,
59
+ "py-2" , // padding here because it cannot be set on the parent due to transitioning height
61
60
styles . bannerInfoContainer ,
62
61
) }
63
62
>
You can’t perform that action at this time.
0 commit comments