-
Notifications
You must be signed in to change notification settings - Fork 0
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
Implemented AppSelect component #268
base: dev
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@@ -27,7 +30,11 @@ const AppFormControl = forwardRef<HTMLDivElement, AppFormControlProps>( | |||
}, [isInvalid, helperText]); | |||
|
|||
return ( | |||
<div className={classnames("app-form-control", className)} ref={ref}> | |||
<div | |||
style={{ width: fullWidth ? "100%" : "auto" }} |
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.
Could you move it to scss file?
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
@@ -0,0 +1,111 @@ | |||
@use "design-system/mixins/scrollbar.module.scss" as *; |
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.
Let's use .module.scss only for exporting variables to js
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
type="multiple" | ||
/> | ||
<div style={{ marginTop: "20px" }}> | ||
<h3>Selected Options:</h3> |
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.
Same for texts
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.
Already fixed
<div ref={ref} style={{ width: containerWidth }}> | ||
<div | ||
style={{ width: containerWidth }} |
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.
Do we need to set width on both contaners?
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.
Removed redundant style
}; | ||
|
||
// TODO: improve AppSpinner component | ||
function AppSpinner({ variant }: AppSpinnerProps) { | ||
function AppSpinner({ variant = "#000" }: AppSpinnerProps) { |
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.
May I propose to use value form APP_COLORS
?
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
$thumb-color: #ddd, | ||
$thumb-hover: #ccc, | ||
$track-color: #fff, |
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 use colors from design system
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
&::-webkit-scrollbar { | ||
width: $width; // for vertical scrollbar | ||
height: $width; // for horizontal scrollbar | ||
} | ||
|
||
&::-webkit-scrollbar-track { | ||
background: $track-color; | ||
} | ||
|
||
&::-webkit-scrollbar-thumb { | ||
background: $thumb-color; | ||
border-radius: $border-radius; | ||
} | ||
|
||
&::-webkit-scrollbar-thumb:hover { | ||
background: $thumb-hover; | ||
} |
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.
Did you check this in firefox? I think we need to add additional property because scrollbars are tricky to style across browsers
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.
There are not enough flexible styles for Firefox, so I can't fully customize the scrollbar
); | ||
}; | ||
|
||
AppSelectItem.displayName = "Item"; |
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 use AppSelectItem for display 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
Please move all AppSelectItem related types, scss to separate folder within app-select, it should be like follows: app-select/app-select-item |
24fd56e
to
6fef661
Compare
6fef661
to
6b56ac2
Compare
6b56ac2
to
7cff821
Compare
eab65ff
to
293d4bf
Compare
No description provided.