Skip to content

Commit

Permalink
fix: Style on checkbox and text (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbitDoge authored Oct 26, 2020
1 parent dbc4da2 commit 27bf6cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/Checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ const Checkbox = styled.input.attrs({ type: "checkbox" })`
transform: rotate(-50deg);
transition: border-color 0.2s ease-in-out;
}
&:focus {
outline: none;
}
&:disabled {
cursor: default;
opacity: 0.6;
}
&:focus {
outline: none;
box-shadow: 0 0 0 2px ${({ theme }) => theme.colors.secondary};
}
&:checked {
background-color: ${({ theme }) => theme.colors.success};
&:after {
Expand Down
1 change: 1 addition & 0 deletions src/components/Heading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const style = {

const Heading = styled(Text).attrs({ bold: true })<Props>`
${({ size }) => style[size || sizes.MD]}
line-height: 1.1;
`;

Heading.defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Text = styled.div<Props>`
color: ${getColor};
font-size: ${getFontSize};
font-weight: ${({ bold }) => (bold ? 600 : 400)};
line-height: 1.4;
line-height: 1.5;
`;

export default Text;

0 comments on commit 27bf6cf

Please sign in to comment.