Skip to content
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

CHE-4518: change styles for input boxes #5384

Merged
merged 2 commits into from
Jun 19, 2017
Merged

CHE-4518: change styles for input boxes #5384

merged 2 commits into from
Jun 19, 2017

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Jun 15, 2017

Signed-off-by: Oleksii Orel oorel@redhat.com

What does this PR do?

Change styles for input boxes.

What issues does this PR fix or reference?

#4518

Changelog

  • Change styles for input boxes for UD.

Release Notes

On our road to Che 6, we have refined the input boxes in the Dashboard so that they look prettier and better to interact with. The different states of the input boxes are well defined and they allow the user to properly identify if the input is having the focus and is in edit mode. Similarly, it is now clearer to understand the mandatory fields and when the values are incorrect. As for the styles of the input boxes, they are simpler and easier to identify in the page.

Docs PR

N/A

selection_006
selection_007
selection_008

@benoitf benoitf added kind/enhancement A feature request - must adhere to the feature request template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Jun 15, 2017
ng-minlength="3"
ng-maxlength="20"
ng-pattern="/^[ A-Za-z0-9_\-\.]+$/">
<div ng-message="pattern">Factory name may contain digits, latin letters, spaces, _ , . , - and should start only with digits, latin letters or underscores</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You removed the ng-message =required . Does it need to be removed on all che-input-box elements in UD ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed "ng-message =required" because we have another solution(red placeholder with an asterisk) in mockups;
selection_010

Copy link
Contributor Author

@olexii4 olexii4 Jun 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both messages and an asterisk will be too much.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, is that ng-message="required" need to be removed on all occurence of che-input-box we have in all pages of UD ?

Copy link
Contributor Author

@olexii4 olexii4 Jun 15, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. But we have only three input boxes in che. And I have changed them.

We have many places with input box in codenvy. In general, we have three input widgets: che-input, che-input-box and che-textarea.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok :) I thought we had more ^^

git-url
required>
<div ng-message="gitUrl" ng-if="createFactoryGitCtrl.location && createFactoryGitCtrl.location.length > 0">
<span>Invalid Git URL</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the required field is there transformed as a span element, on the previous change it was deleted. Could you explain why in some case we need to remove it, or transform it to a span element. We couldn't keep the ng-message required element to be displayed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hide the error message in a case with required input (the same reason).
I will remove element for this message.

@olexii4
Copy link
Contributor Author

olexii4 commented Jun 15, 2017

done

@codenvy-ci
Copy link

@ashumilova ashumilova self-requested a review June 16, 2017 06:32
@ashumilova ashumilova added this to the 5.13.0 milestone Jun 16, 2017
@codenvy-ci
Copy link

@codenvy-ci
Copy link

@codenvy-ci
Copy link

Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@olexii4 olexii4 merged commit 5538f93 into master Jun 19, 2017
@olexii4 olexii4 deleted the CHE-4518 branch June 19, 2017 13:34
@codenvy-ci
Copy link

@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants