diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-19 23:54:34 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-19 23:54:34 -0700 |
commit | fb2e197a7a1e8663255bad8c476e2aa5d8b1a931 (patch) | |
tree | a8628ce3dd26535097ba27fa9fc08fe7fa67c1b9 /src | |
parent | ab2fc50b409894e101d68943ad453505df439074 (diff) |
Set path colour in button
Diffstat (limited to 'src')
-rw-r--r-- | src/components/button.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/button.js b/src/components/button.js index 524d878..0fa5ded 100644 --- a/src/components/button.js +++ b/src/components/button.js @@ -16,10 +16,16 @@ const makeButtonStyle = p => transition: ${transitions.hover}; text-decoration: none; background: ${p.background || 'none'}; + & path { + transition: ${transitions.hover}; + } &:hover { background: ${p.hoverBackground || 'none'}; border-color: ${p.background || 'none'}; color: ${p.hoverColour || 'initial'}; + & path { + fill: ${p.hoverColour || 'initial'}; + } } ` |