4
0
forked from crowetic/commerce

fix z index

This commit is contained in:
Julián Benegas 2020-10-23 21:53:59 -03:00
parent ac0685c9b9
commit b5022fc809
2 changed files with 6 additions and 5 deletions

View File

@ -0,0 +1,3 @@
.root {
@apply transition-transform transform duration-500 text-center ease-out p-6 bg-primary text-base text-sm md:flex md:text-left flex-row justify-center items-center font-medium fixed bottom-0 w-full z-30;
}

View File

@ -1,6 +1,8 @@
import cn from 'classnames'
import { FC } from 'react'
import s from './Featurebar.module.css'
interface Props {
className?: string
title: string
@ -16,11 +18,7 @@ const Featurebar: FC<Props> = ({
action,
hide,
}) => {
const rootClassName = cn(
'transition-transform transform duration-500 text-center ease-out p-6 bg-primary text-base text-sm md:flex md:text-left flex-row justify-center items-center font-medium fixed bottom-0 w-full z-30',
{ 'translate-y-full': hide },
className
)
const rootClassName = cn(s.root, { 'translate-y-full': hide }, className)
return (
<div className={rootClassName}>
<span className="block md:inline">{title}</span>