diff --git a/components/button/button.drip.tsx b/components/button/button.drip.tsx index ba78a64..99e52f3 100644 --- a/components/button/button.drip.tsx +++ b/components/button/button.drip.tsx @@ -54,10 +54,10 @@ const ButtonDrip: React.FC = ({ x, y, color, onCompleted }) => { svg { position: absolute; - animation: 400ms ease-in expand; + animation: 350ms ease-in expand; animation-fill-mode: forwards; - width: 20px; - height: 20px; + width: 1rem; + height: 1rem; } @keyframes expand { @@ -72,7 +72,7 @@ const ButtonDrip: React.FC = ({ x, y, color, onCompleted }) => { opacity: 0.5; } 100% { - transform: scale(25); + transform: scale(28); opacity: 0; } } diff --git a/components/button/styles.ts b/components/button/styles.ts index 884c9e3..78c4486 100644 --- a/components/button/styles.ts +++ b/components/button/styles.ts @@ -287,5 +287,5 @@ export const getButtonDripColor = (palette: ZeitUIThemesPalette, props: ButtonPr const { type } = props const isLightHover = type.endsWith('light') const hoverColors = getButtonHoverColors(palette, props) - return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : palette.accents_2 + return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65) } diff --git a/pages/en-us/components/button.mdx b/pages/en-us/components/button.mdx index 776eea7..8153565 100644 --- a/pages/en-us/components/button.mdx +++ b/pages/en-us/components/button.mdx @@ -1,5 +1,5 @@ import { Layout, Playground, Attributes } from 'lib/components' -import { Button, Spacer } from 'components' +import { Button, Spacer, Grid } from 'components' import Router from 'next/router' import Settings from '@zeit-ui/react-icons/settings' import UserX from '@zeit-ui/react-icons/userX' @@ -50,15 +50,19 @@ Used to trigger an operation. - - - - - - + + + + + + + + + + + `} /> `} /> - NormalSizes diff --git a/pages/zh-cn/components/button.mdx b/pages/zh-cn/components/button.mdx index 8505d6d..1966327 100644 --- a/pages/zh-cn/components/button.mdx +++ b/pages/zh-cn/components/button.mdx @@ -1,5 +1,5 @@ import { Layout, Playground, Attributes } from 'lib/components' -import { Button, Spacer } from 'components' +import { Button, Spacer, Grid } from 'components' import Router from 'next/router' import Settings from '@zeit-ui/react-icons/settings' import UserX from '@zeit-ui/react-icons/userX' @@ -49,15 +49,19 @@ export const meta = { - - - - - - + + + + + + + + + + + `} /> NormalSizes