Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Add tooltip to icon component #2350

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

GuessWhoSamFoo
Copy link
Contributor

What this PR does / why we need it:
Adds a tooltip to icons. Only added to icons as it seems to be the few components where adding a tooltip makes sense over a signpost.

Which issue(s) this PR fixes

Signed-off-by: Sam Foo foos@vmware.com

Copy link
Contributor

@lenriquez lenriquez left a comment

Choose a reason for hiding this comment

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

It looks good to me!

@@ -51,6 +53,17 @@ export class IconComponent extends AbstractViewComponent<IconView> {

protected update(): void {
const view = this.v;
this.tooltip = view.config.tooltip;
Copy link
Contributor

Choose a reason for hiding this comment

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

This function is already long it will be nice to have this functionality in another function

Signed-off-by: Sam Foo <foos@vmware.com>
@GuessWhoSamFoo GuessWhoSamFoo merged commit 2e2cb85 into vmware-archive:master Apr 22, 2021
@GuessWhoSamFoo GuessWhoSamFoo deleted the issue-2307 branch April 22, 2021 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend IconComponent to support Tooltip
2 participants