Skip to content

feat: add tooltip support for icons#7608

Merged
BeksOmega merged 1 commit into
RaspberryPiFoundation:developfrom
BeksOmega:feat/icon-tooltips
Oct 31, 2023
Merged

feat: add tooltip support for icons#7608
BeksOmega merged 1 commit into
RaspberryPiFoundation:developfrom
BeksOmega:feat/icon-tooltips

Conversation

@BeksOmega
Copy link
Copy Markdown
Contributor

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
@BeksOmega BeksOmega requested a review from NeilFraser 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 RaspberryPiFoundation:develop Oct 31, 2023
@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