feat(Button): color prop support linear-gradient (#4252)

This commit is contained in:
neverland
2019-08-27 16:33:00 +08:00
committed by GitHub
parent 5809030b38
commit 339cbdc1dd
2 changed files with 3 additions and 2 deletions

View File

@@ -64,7 +64,8 @@ function Button(
style.color = plain ? color : WHITE;
if (!plain) {
style.backgroundColor = color;
// Use background instead of backgroundColor to make linear-gradient work
style.background = color;
}
}