docs(button): add document about light types

fix(button): fix animation shadow too large
This commit is contained in:
unix
2020-05-15 20:18:14 +08:00
parent 542c98272e
commit c57ee5b939
4 changed files with 33 additions and 24 deletions

View File

@@ -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)
}