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

[Angular] Add hint to show description on controls #1572

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

eneufeld
Copy link
Member

Add hint to angular controls. This way the hint is always visible.

Signed-off-by: Eugen Neufeld eneufeld@eclipsesource.com

@eneufeld eneufeld requested a review from sdirix April 20, 2020 10:27
@coveralls
Copy link

coveralls commented Apr 20, 2020

Coverage Status

Coverage remained the same at 89.192% when pulling 379c2e8 on eneufeld:feat/angular-show-hint into 5b751d2 on eclipsesource:master.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

With this change we now show the description twice, as a placeholder and as a permanent hint.
AngularRenderersWithChange

In the React material renderers we only show the hint when the input is focused.
ReactMaterialHint
However we also support the option showUnfocusedDescription which can be set via the ui schema or the global configuration object and then the hint is always shown.

We could use this opportunity to align the renderer sets and implement the same behavior in the Angular renderer set as in the Material renderer set.

What do you think?

@eneufeld
Copy link
Member Author

I can adopt the angular code base to behave the same as the react renderers.

@sdirix sdirix added this to the 2.4.0 milestone Apr 24, 2020
Add hint to angular controls. This way the hint is always visible.

Signed-off-by: Eugen Neufeld <eneufeld@eclipsesource.com>
Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

LGTM! I extracted the remaining work into a separate issue

@sdirix sdirix merged commit 28528c1 into eclipsesource:master Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants