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

feat: add tooltip support for icons #7608

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

BeksOmega
Copy link
Collaborator

The basics

The details

Resolves

Fixes #7047

Proposed Changes

Makes it so that built-in icons can have tooltips.

Reason for Changes

People want icons to have tooltips.

Test Coverage

Manually tested that by default icons show the tooltip of the parent.
Manually tested that setting the tooltip displays the new tooltip.
Manually tested that setting the new tooltip to null displays the tooltip of the parent.

Documentation

This should be added to the custom icons docs maybe? Need to check.

Additional Information

This adds tooltip support for any icons inheriting from Blockly.icons.Icon. Any icons made by external developers which are not inheriting can do what I've done here to support their own tooltips.

@BeksOmega BeksOmega requested a review from a team as a code owner October 23, 2023 21:51
@github-actions github-actions bot added the PR: feature Adds a feature label Oct 23, 2023
@BeksOmega BeksOmega merged commit 910abf1 into google:develop Oct 31, 2023
11 checks passed
@BeksOmega BeksOmega deleted the feat/icon-tooltips branch May 14, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for tooltips on icons
2 participants