Skip to content

Commit

Permalink
fix(Checkbox): accessibility, add check
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jun 5, 2018
1 parent 89c68a9 commit ebbe6d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions packages/blockchain-info-components/src/Form/CheckBoxInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const BaseCheckBoxInput = styled.input.attrs({
const Label = styled.label`
display: flex;
cursor: pointer;
position: relative;
align-items: center;
&:before {
content: '';
Expand All @@ -48,6 +49,15 @@ const Label = styled.label`
transition: background .2s;
border: 1px solid ${props => props.theme['brand-secondary']};
}
&:after {
content: '\\e90a';
font-family: 'icomoon';
position: absolute;
color: ${props => props.theme['white']};
font-weight: 600;
font-size: 10px;
left: 2px;
}
`

const CheckBoxInput = props => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const Label = styled.label`
align-items: center;
&:before {
content: '';
width: 15px;
height: 15px;
width: 12px;
height: 12px;
margin-right: 5px;
background: white;
border-radius: 2px;
Expand Down

0 comments on commit ebbe6d0

Please sign in to comment.