From 8bee1a3fc948f292b23e9024cb89600e08757240 Mon Sep 17 00:00:00 2001 From: ilyayudovin Date: Fri, 12 Jun 2020 19:34:57 +0300 Subject: fix: add text shadow for percentage --- src/PollCard/PollCard.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/PollCard/PollCard.tsx') diff --git a/src/PollCard/PollCard.tsx b/src/PollCard/PollCard.tsx index 2a51840..b639f25 100644 --- a/src/PollCard/PollCard.tsx +++ b/src/PollCard/PollCard.tsx @@ -35,7 +35,8 @@ const useStyles = makeStyles(theme => ({ position: 'absolute', color: 'white', top: '86%', - fontSize: 20 + fontSize: 20, + textShadow: '0 0 3px black' }, percentageLeft: { left: 30 @@ -71,7 +72,7 @@ const PollCard: React.FC = ({ poll }) => { + )} title={author.name} /> -- cgit v1.2.3