Skip to content

#209 Add (optional) tooltips to icons #211

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

Merged
merged 2 commits into from
Jul 10, 2025
Merged

Conversation

CarlosNZ
Copy link
Owner

Fix #209

Adds optional tooltips for icons -- must be enabled by the showIconTooltips prop.

Text for the tooltips can be customised using localisations.

CleanShot 2025-07-10 at 23 28 35@2x

@CarlosNZ CarlosNZ requested a review from Copilot July 10, 2025 11:29
Copilot

This comment was marked as outdated.

@CarlosNZ CarlosNZ requested a review from Copilot July 10, 2025 11:58
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds optional hover tooltips to icon buttons, toggled by the new showIconTooltips prop, with customizable text via localisation.

  • Introduce and propagate showIconTooltips prop through types and components (defaulting to false in JsonEditor).
  • Add new localisation keys (TOOLTIP_COPY, TOOLTIP_EDIT, TOOLTIP_DELETE, TOOLTIP_ADD).
  • Update EditButtons to conditionally render title attributes, and document usage in README and demo.

@CarlosNZ CarlosNZ merged commit d52d627 into main Jul 10, 2025
@CarlosNZ CarlosNZ deleted the 209-tooltips-for-icons branch July 10, 2025 11:59
@CarlosNZ CarlosNZ mentioned this pull request Jul 10, 2025
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.

Tooltips for Icons
1 participant