Skip to content

Commit

Permalink
Create AlternativesForm component
Browse files Browse the repository at this point in the history
  • Loading branch information
TheeDouglasAM3 committed Jan 29, 2021
1 parent 3b97684 commit c2d84e3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/components/AlternativesForm/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import styled from 'styled-components'

const AlternativesForm = styled.form`
label {
&[data-selected="true"] {
background-color: ${({ theme }) => theme.colors.primary};
&[data-status="SUCCESS"] {
background-color: ${({ theme }) => theme.colors.success};
}
&[data-status="ERROR"] {
background-color: ${({ theme }) => theme.colors.wrong};
}
}
&:focus {
opacity: 1;
}
}
button {
margin-top: 24px;
}
`

export default AlternativesForm

0 comments on commit c2d84e3

Please sign in to comment.