-
Notifications
You must be signed in to change notification settings - Fork 15
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
Label component #723
base: develop
Are you sure you want to change the base?
Label component #723
Conversation
* add navigation * changes after review * fix lint * chages after review
hi @dzonidoo can you update the PR? |
type?: 'default' | 'success' | 'warning' | 'alert' | 'info' | 'highlight'; | ||
size?: 'small' | 'medium' | 'big'; | ||
style?: 'fill' | 'hollow' | 'translucent'; // defaults to 'fill' | ||
className?: string; |
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.
can we avoid that?
* add navigation * changes after review * fix lint * chages after review
text: string; | ||
type?: 'default' | 'success' | 'warning' | 'alert' | 'info' | 'highlight'; | ||
size?: 'small' | 'medium' | 'big'; | ||
style?: 'fill' | 'hollow' | 'translucent'; // defaults to 'fill' |
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.
I don't see hollow being used at all, if fill is default, I wonder if it wouldn't be better to handle it as param like:
default: <Label ... />
translucent: <Label translucent ... />
but if this is somehow consistent with other components I don't mind
}, this.props.className); | ||
|
||
return ( | ||
<span className={classes}> |
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.
I wonder why not use label
tag if it's called a label, in case this is not input label we should probably call it something else
NHUB-468
Checklist
lodash.get
with optional chaining for modified code segments