feat: Add keyboard shortcuts to tooltips

This commit is contained in:
Tom Moor
2019-08-28 23:30:27 -07:00
parent b56f8e7870
commit 579eaf325b
6 changed files with 74 additions and 76 deletions

View File

@ -51,7 +51,7 @@ const Modal = ({
<Content column>
{title && <h1>{title}</h1>}
<Close onClick={onRequestClose}>
<CloseIcon size={40} />
<CloseIcon size={40} color="currentColor" />
<Esc>esc</Esc>
</Close>
{children}
@ -98,8 +98,8 @@ const Close = styled.a`
position: fixed;
top: 16px;
right: 16px;
opacity: 0.5;
color: ${props => props.theme.textSecondary};
opacity: 0.75;
color: ${props => props.theme.text};
&:hover {
opacity: 1;