Skip to content

Commit

Permalink
Restore mousetrap to address it separately.
Browse files Browse the repository at this point in the history
  • Loading branch information
miina committed Jun 17, 2020
1 parent 5d9cb3e commit d729d8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/src/edit-story/components/form/radioGroup.js
Expand Up @@ -53,7 +53,8 @@ const Name = styled.span`
line-height: 24px;
`;

const Radio = styled.input`
// Class should contain "mousetrap" to enable keyboard shortcuts on inputs.
const Radio = styled.input.attrs({ className: 'mousetrap' })`
opacity: 0;
position: absolute;
:focus + ${Label} {
Expand Down

0 comments on commit d729d8d

Please sign in to comment.