diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-12 19:34:57 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-12 19:34:57 +0300 |
commit | 8bee1a3fc948f292b23e9024cb89600e08757240 (patch) | |
tree | aa04a6b6a59e58df3305c601e3b0b8553521e656 /src/PollCard | |
parent | 1ac600e2fd9024604d98c525957cd2fbfdf9a779 (diff) | |
download | which-ui-8bee1a3fc948f292b23e9024cb89600e08757240.tar.gz |
fix: add text shadow for percentage
Diffstat (limited to 'src/PollCard')
-rw-r--r-- | src/PollCard/PollCard.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
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<PropTypes> = ({ poll }) => { <Card className={classes.root}> <CardHeader avatar={( - <Avatar aria-label="avatar" src={author.avatarUrl} alt={author.name[0].toUpperCase()}/> + <Avatar aria-label="avatar" src={author.avatarUrl} alt={author.name[0].toUpperCase()} /> )} title={author.name} /> |