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

Feat(ray-product):Added Radio in tsx format #247

Merged
merged 2 commits into from
Oct 28, 2019

Conversation

jamesdamild
Copy link
Contributor

Ray Component: https://ray.wework.com/components/radio/

How to run locally
$ yarn storybook
$ yarn test core-components --watch

Nutshell Details:
Semantic wrapper around Radio element:
2019-10-28 10 14 18

import Radio from './Radio';

describe('Radio', () => {
test('it renders a radio', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

you might as well use it instead of test if you're going to start the strings with "it"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I change the work thanks

expect(wrapper.find('.ray-radio.some-custom-class').length).toBe(1);
});

test('it a pill style', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: fix grammar

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

return (
<div className={wrapperClass}>
<input
className={pill ? 'ray-radio-pill__input' : 'ray-radio__input'}
Copy link
Contributor

Choose a reason for hiding this comment

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

should this class be ray-radio__pill-input?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jamesdamild jamesdamild merged commit d61d24b into master Oct 28, 2019
@delete-merged-branch delete-merged-branch bot deleted the james/Ratio-js-to-tsx branch October 28, 2019 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants