From dcdc084a7e800ddc6242e8ed1ef22c7b4133187b Mon Sep 17 00:00:00 2001 From: Cobular <22972550+Cobular@users.noreply.github.com> Date: Wed, 1 Sep 2021 13:17:40 -0700 Subject: [PATCH] More accessible --- src/components/AboutMe/AboutMe.scss | 40 +++++++++++++++++++++-------- src/components/AboutMe/AboutMe.tsx | 30 ++++++++++++---------- src/components/ProjectGrid.scss | 18 ++++++++----- src/components/ProjectGrid.tsx | 14 ++++++---- src/vars.scss | 5 ++-- 5 files changed, 69 insertions(+), 38 deletions(-) diff --git a/src/components/AboutMe/AboutMe.scss b/src/components/AboutMe/AboutMe.scss index 7d4d690..adc8526 100644 --- a/src/components/AboutMe/AboutMe.scss +++ b/src/components/AboutMe/AboutMe.scss @@ -72,16 +72,36 @@ } } -} + button { + background: none!important; + border: none; + padding: 0!important; + color: var(--link-color); + cursor: pointer; + text-decoration: underline; + text-decoration-thickness: 0.15em; + text-decoration-color: rgba(0, 0, 0, 0); + transition: text-decoration 300ms; -button { - background: none!important; - border: none; - padding: 0!important; - color: var(--link-color); - cursor: pointer; -} + &:hover, &:focus, &:focus-visible { + text-decoration-color: var(--link-color); + border: none; + } + } + + a { + color: var(--link-color); + text-decoration: underline; + text-decoration-thickness: 0.15em; + text-decoration-color: rgba(0, 0, 0, 0); + transition: text-decoration 300ms; -a { - color: var(--link-color); + &:hover, &:focus, &:focus-visible { + text-decoration-color: var(--link-color); + } + + + } } + + diff --git a/src/components/AboutMe/AboutMe.tsx b/src/components/AboutMe/AboutMe.tsx index e07a5b9..a0400ac 100644 --- a/src/components/AboutMe/AboutMe.tsx +++ b/src/components/AboutMe/AboutMe.tsx @@ -3,7 +3,6 @@ import { Tooltip } from "antd"; import { Age } from "./Age"; import { LastFmLi } from "./LastFmLi"; - export function AboutMe() { function EmailHandler() { const email = "Y29udGFjdEBqYWtlY292ZXIubWU="; @@ -13,10 +12,10 @@ export function AboutMe() { return (