From 48066f540c30b513777d597c80df9f885501bb09 Mon Sep 17 00:00:00 2001 From: Sergio Date: Fri, 10 Apr 2020 12:36:16 +0200 Subject: [PATCH] feat: added hover to dotted info to usability purposes --- src/Themes.tsx | 2 +- src/components/Button.tsx | 1 + src/components/SvgIcon.tsx | 12 ++++++------ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Themes.tsx b/src/Themes.tsx index f57496a..24de51d 100644 --- a/src/Themes.tsx +++ b/src/Themes.tsx @@ -35,7 +35,7 @@ const BaseComponent: React.FunctionComponent = ({ onClick={() => onSelectTheme(th)} > {th.name} - onOpenModal()} /> + onOpenModal()} /> )) .toArray()} diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 7f0e4dd..cbf153f 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,3 +1,4 @@ +import React from "react"; import styled, { css } from "styled-components"; interface StyledButton { diff --git a/src/components/SvgIcon.tsx b/src/components/SvgIcon.tsx index f0e4eef..6cce75a 100644 --- a/src/components/SvgIcon.tsx +++ b/src/components/SvgIcon.tsx @@ -5,15 +5,15 @@ const StyledSvg = styled.svg` width: 15px; height: 15px; z-index: 999; - svg { - width: 15px; - height: 15px; - } + margin-left: 0.75rem; - &:hover { - cursor: pointer; + :hover { + border: 1px solid; + border-radius: 50%; + transition: all 150ms ease-out; } `; + const svgReference = { close: (), // @ts-ignore