-
Notifications
You must be signed in to change notification settings - Fork 8
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
Checkbox Component #44
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: ctrl-alt-delete007 <[email protected]>
${({ | ||
theme: { | ||
semantic: { | ||
color: { content }, | ||
}, | ||
}, |
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.
This is an example for deconstructing from the theme might look like
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.
Created and imported an svg to be used when a user clicks on the box < should this stay here?>
borderColor: theme.semantic.color.border.default, | ||
borderRadius: theme.semantic.border.radius.small, |
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.
This may be a little harder to deconstruct since the similarities end at semantic, in my opinion but open to it
'&:after': { | ||
content: "''", | ||
background: 'white', | ||
'-webkit-mask': `url(${checkmark})`, | ||
maskRepeat: 'no-repeat', |
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.
created a psuedo element to help showcase the checkmark
Changes
DOD
Preview
To QA: http://localhost:6006/?path=/story/Checkbox