-
Notifications
You must be signed in to change notification settings - Fork 31
Feature/fwf 5209 UI toggle switch #833
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
Feature/fwf 5209 UI toggle switch #833
Conversation
PR Reviewer Guide 🔍(Review updated until commit 71cb339)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 71cb339 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 9ba6594
Suggestions up to commit 80d49a9
Suggestions up to commit 982d7df
|
}else{ | ||
if(type == 'binary')fillColor = '#E57373'; | ||
else fillColor = '#E5E5E5'; | ||
|
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.
Instead of hashcode, we can use variable here using a style service like const disabledPrimaryColor = StyleServices.getCSSVariable('--primary');
@rintumerin-aot
Persistent review updated to latest commit 80d49a9 |
|
Persistent review updated to latest commit 9ba6594 |
Persistent review updated to latest commit 71cb339 |
User description
Issue Tracking
JIRA: https://aottech.atlassian.net/browse/FWF-5209
Issue Type: FEATURE
Changes
Toggle/Switch component added
PR Type
Enhancement
Description
Add reusable Switch component
Export Switch from components package
Include switch SCSS styles and variables
Add switch icons to SvgIcons
Diagram Walkthrough
File Walkthrough
8 files
Expose Switch in admin components typing
New configurable Switch React component
Add switch tick/cross SVG icons
Export Switch from components package
Expose Switch in review app typings
Expose Switch in submissions app typings
Import switch SCSS into theme bundle
Add SCSS styles for custom switch