-
Notifications
You must be signed in to change notification settings - Fork 7
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
[WIP]: added new ui component checkbox #34
base: main
Are you sure you want to change the base?
Conversation
src/components/Checkbox/Checkbox.tsx
Outdated
position: 'relative', | ||
cursor: 'pointer', | ||
transition: `200ms`, | ||
boxSizing: 'border-box', | ||
border: `2px solid ${theme.COLOR.gray3}`, | ||
border: `2px solid ${disabled ? 'blue' : 'red'}`, |
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.
We need to pull the color codes from the new theme instead of hardcoding them.
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.
fixed it please check
src/components/Checkbox/Checkbox.tsx
Outdated
[`${Input}:focus + &`]: { | ||
borderColor: theme.COLOR.brandMain, | ||
border: `2px solid #5B9EF8`, |
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.
Please check for hardcoded color 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.
fixed it please check
src/components/Checkbox/Checkbox.tsx
Outdated
}, | ||
|
||
[`${Input}:checked:focus + &`]: { | ||
borderColor: theme.COLOR.gray5, | ||
border: `2px solid #5B9EF8`, |
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.
Please check for hardcoded color 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.
fixed it please check
src/components/Checkbox/Checkbox.tsx
Outdated
left: '5px', | ||
right: '5px', | ||
bottom: '5px', | ||
border: '115px solid #ffea00' |
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.
Please check for hardcoded color 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.
Hey, what you mean here?
To extract into a variable?
changed main theme
changed default to basic
fixed ts error
Related Ticket(s)
ACORN-939 Checkbox(link)
Proposed Changes
added new UI component checkbox
Checklist
Updated ticket in Jira
Screenshots/Screen Recording