From 35a885c0832797c1e6d0542dabc52fb798ce86c7 Mon Sep 17 00:00:00 2001 From: Tommyhama95 Date: Tue, 10 Mar 2020 20:59:33 +0100 Subject: [PATCH] Fixed link tag buttons Changed link.module.scss to work with new tags. --- src/components/Link/Link.module.scss | 13 ++++++------- src/components/Link/Link.tsx | 14 ++++++++------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/components/Link/Link.module.scss b/src/components/Link/Link.module.scss index 4cb3856..757d44f 100755 --- a/src/components/Link/Link.module.scss +++ b/src/components/Link/Link.module.scss @@ -11,14 +11,13 @@ background: none; text-align: center; cursor: pointer; - a { - color: $color-logo-red; - text-decoration: none; - } + text-decoration: none; + color: $color-logo-red; + &:hover { + text-decoration: none; background: $color-logo-red-dark; - a { - color: white; - } + color: white; + } } \ No newline at end of file diff --git a/src/components/Link/Link.tsx b/src/components/Link/Link.tsx index 7df8b5f..524404f 100755 --- a/src/components/Link/Link.tsx +++ b/src/components/Link/Link.tsx @@ -12,14 +12,16 @@ interface LinkProps { function Link(props: LinkProps) { return ( props.external - ?
- {props.children} -
- :
- + ? + {props.children} + + : + + {props.children} + -
+ ) }