-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
import Radio from './Radio'; | ||
|
||
describe('Radio', () => { | ||
test('it renders a radio', () => { |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
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', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: fix grammar
There was a problem hiding this comment.
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'} |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: