Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox #35

Merged
merged 4 commits into from
Jan 14, 2019
Merged

Checkbox #35

merged 4 commits into from
Jan 14, 2019

Conversation

zbruno
Copy link
Contributor

@zbruno zbruno commented Jan 11, 2019

@zbruno zbruno requested a review from snags88 January 11, 2019 00:39
@snags88 snags88 temporarily deployed to curology-radiance-pr-35 January 11, 2019 00:39 Inactive
Copy link
Contributor

@snags88 snags88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great overall and nice refactor. Just missed 1 thing with the outline when the selector is focused.

@@ -61,14 +61,18 @@ export const Radio = styled.div`
transition: background-color ${ANIMATION.defaultTiming};
width: ${SPACING.medium};

${({ selector }) => selector === 'checkbox' && css`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd move the other border-radius from L55 next to this so that it's clear it's being overwritten.

Actually probably better practice not to declare the same CSS attribute on the same class so maybe switch it out for a ternary based on the selector

@@ -23,14 +23,14 @@ export const OuterContainer = styled.div`

:focus {
outline: none;
${RadioContainer} {
${SelectorContainer} {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'll need to change the border-radius here based on the selector type.

screen shot 2019-01-10 at 4 56 03 pm

@zbruno zbruno temporarily deployed to curology-radiance-pr-35 January 11, 2019 03:22 Inactive
@zbruno
Copy link
Contributor Author

zbruno commented Jan 11, 2019

@snags88 Updated.

@snags88 snags88 requested a review from benkolde January 11, 2019 17:35
@snags88
Copy link
Contributor

snags88 commented Jan 11, 2019

@benkolde could you approve from a design stand point for the radio button and check button

Copy link
Contributor

@snags88 snags88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor nit changes. Otherwise looks good.

docs/checkbox.md Outdated
```jsx
import { Checkbox } from 'radiance-ui';

<Checkbox type='primary' checked>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] extra space at the beginning of the line

const defaultProps = {
onClick: () => {},
type: 'primary',
selector: "radio",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] single quotes over double quotes unless it's a JSX prop

Copy link
Contributor

@benkolde benkolde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great guys. 🤙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants