-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fix issue of button not disabled while adding todo without title #249
base: master
Are you sure you want to change the base?
Conversation
@@ -143,7 +143,7 @@ export default class AddIssue extends React.PureComponent { | |||
<React.Fragment> | |||
<TextareaAutosize | |||
style={style.textareaResizeMessage} | |||
placeholder='Enter a title' | |||
placeholder='Enter a title *' |
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 usally want the asterisk to be red or probably error-text
class in this case. Also this should be a hint
and not placeholder
right?
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.
@mickmister The TextareaAutosize
component doesn't have any hint
prop in it. Also, the placeholder only supports string
type, that's why we were not able to update the color.
Should we add a label
element and add stylings to support this?
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.
That's an external library we're using here. If it's not trivial to change the color of the asterisk, then maybe we just don't use an asterisk here. @asaadmahmood What do you think?
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.
@asaadmahmood Gentle reminder for this
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.
@asaadmahmood Gentle reminder for this
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.
@ayusht2810 We can get rid of the asterik, the button is disabled, its fine that the title needs to be entered.
…lugin-todo into fix_issue_216
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
Summary
Screenshot
Ticket Link
Fixes #216
Checklist
make test
Ran test cases and ensured they are passingmake check-style
Ran style check and ensured both webapp and server pass the checks