-
Notifications
You must be signed in to change notification settings - Fork 14
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(PPDSC-2179): switch stories #212
Conversation
- Add dynamic thumb icon Switch scenario to Storybook - Pass checked prop down to ThumbIcon and add test - Refactor types for Switch component to simplify
- Increase thumb size and remove track icons for narrow track scenario - Remove thumb and feedback transitions for reduced motion scenario
You can preview these changes on: |
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.
looks good to me.
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.
Just one comment about the reduced motion. The rest looks good.
I noticed a comment "// TODO: Contains similar logic to getComponentOverrides to cast the override icon as a component. But why is this necessary?" Is there anything we need to do?
@Xin00163 I've removed this comment. |
- When overrides.icon is set as a style override, this object is passed to the CheckIcon component through the overrides prop - Renaming parentOverrides to overrides meant that this value was overwritten - Reverted back to parentOverrides and added a test to prevent future regressions
* feat(PPDSC-2179): use dynamic icon in switch story - Add dynamic thumb icon Switch scenario to Storybook - Pass checked prop down to ThumbIcon and add test - Refactor types for Switch component to simplify * feat(PPDSC-2179): final storybook changes - Increase thumb size and remove track icons for narrow track scenario - Remove thumb and feedback transitions for reduced motion scenario * feat(PPDSC-2179): pr comments * feat(PPDSC-2179): fix override bug - When overrides.icon is set as a style override, this object is passed to the CheckIcon component through the overrides prop - Renaming parentOverrides to overrides meant that this value was overwritten - Reverted back to parentOverrides and added a test to prevent future regressions
PPDSC-2179
What
I have done:
I have tested manually: