-
Notifications
You must be signed in to change notification settings - Fork 117
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
ui v2: switches #763
ui v2: switches #763
Conversation
export const Primary = Template.bind({}); | ||
|
||
export const Checked = Template.bind({}); | ||
Checked.props = { |
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.
Checked.props = { | |
Checked.args = { |
}; | ||
|
||
export const Disabled = Template.bind({}); | ||
Disabled.props = { |
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.
Disabled.props = { | |
Disabled.args = { |
const SwitchContainer = styled(MuiSwitch)({ | ||
".MuiSwitch-switchBase": { | ||
":hover": { | ||
backgroundColor: "rgba(231, 231, 234, .65)", |
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.
backgroundColor: "rgba(231, 231, 234, .65)", | |
backgroundColor: "rgba(13, 16, 48, 0.1)", |
backgroundColor: "rgba(231, 231, 234, .65)", | ||
}, | ||
":focus": { | ||
backgroundColor: "rgba(226, 226, 230, .65)", |
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.
backgroundColor: "rgba(226, 226, 230, .65)", | |
backgroundColor: "rgba(13, 16, 48, 0.12)", |
backgroundColor: "rgba(226, 226, 230, .65)", | ||
}, | ||
":active": { | ||
backgroundColor: "rgba(219, 219, 224, .65)", |
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.
backgroundColor: "rgba(219, 219, 224, .65)", | |
backgroundColor: "rgba(13, 16, 48, 0.15)", |
}, | ||
".Mui-checked": { | ||
":hover": { | ||
backgroundColor: "rgba(245, 246, 253, .65)", |
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.
backgroundColor: "rgba(245, 246, 253, .65)", | |
backgroundColor: "rgba(53, 72, 212, 0.05)", |
backgroundColor: "rgba(245, 246, 253, .65)", | ||
}, | ||
":focus": { | ||
backgroundColor: "rgba(235, 237, 251, .65)", |
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.
backgroundColor: "rgba(235, 237, 251, .65)", | |
backgroundColor: "rgba(53, 72, 212, 0.1)", |
backgroundColor: "rgba(235, 237, 251, .65)", | ||
}, | ||
":active": { | ||
backgroundColor: "rgba(215, 218, 246, .65)", |
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.
backgroundColor: "rgba(215, 218, 246, .65)", | |
backgroundColor: "rgba(53, 72, 212, 0.2)", |
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.
lgtm other than scarlett's suggestions
Description
Add switches component.
Due to strothj/react-docgen-typescript-loader#113 the filename cannot be switch.
Testing Performed
storybook