refactor(web): update shadows for material specs

This commit is contained in:
Paul Armstrong
2021-02-04 10:49:14 -08:00
committed by Blake Blackshear
parent 0cac2fec2a
commit 15ae3bee55
3 changed files with 19 additions and 10 deletions

View File

@@ -17,7 +17,9 @@ export default function Box({
const Element = href ? 'a' : 'div';
return (
<div className={`bg-white dark:bg-gray-800 shadow-md hover:shadow-xl rounded-lg overflow-hidden ${className}`}>
<div
className={`bg-white dark:bg-gray-800 shadow-md hover:shadow-lg transition-shadow rounded-lg overflow-hidden ${className}`}
>
<Element href={href} {...props}>
{media}
<div class="p-4 pb-2">{header ? <Heading size="base">{header}</Heading> : null}</div>