-
Notifications
You must be signed in to change notification settings - Fork 179
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(odd): Large Button #12317
feat(odd): Large Button #12317
Conversation
Codecov Report
@@ Coverage Diff @@
## edge #12317 +/- ##
==========================================
- Coverage 73.73% 73.42% -0.31%
==========================================
Files 2215 1485 -730
Lines 61086 48850 -12236
Branches 6299 2984 -3315
==========================================
- Hits 45041 35869 -9172
+ Misses 14589 12527 -2062
+ Partials 1456 454 -1002
Flags with carried forward coverage won't be shown. Click here to find out more. |
onClick: () => void | ||
buttonType: LargeButtonTypes | ||
buttonText: React.ReactNode | ||
disabled?: boolean |
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.
In the Context section, this large button component uses different icons for each button.
I think we need to pass IconName as a props.
disabled?: boolean | |
disabled?: boolean | |
iconName: IconName |
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.
oops good catch! I will add that, thank you!
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.
Mostly looks good to me but from the Figma page, we will need to pass an icon name.
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.
Tested passing an iconName to this component and it worked as expected.
⏺️
closes RAUT-351
Overview
Creates component, story and test for Large Button in ODD
Test Plan
examine the 3 types of buttons + the disabled state on storybook, should match figma
Changelog
LargeButton
component, test and storybookReview requests
Risk assessment
low