KEMBAR78
feat: add has-tooltip attribute to components supporting slotted tooltips by HerbertsVaadin · Pull Request #10028 · vaadin/web-components · GitHub
Skip to content

Conversation

@HerbertsVaadin
Copy link
Collaborator

@HerbertsVaadin HerbertsVaadin commented Aug 19, 2025

Description

Introducing has-tooltip attribute when a tooltip is used on component / element.
Also added has-tooltip attribute description to most components.

Related to #5094

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/pr
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.
  • I have not completed some of the steps above and my pull request can be closed immediately.

Additional for Feature type of change

  • Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.
    (no Acceptance Criteria, but scope was defined)

Note

The following components have the has-tooltip attribute:

  • vaadin-accordion-panel
  • vaadin-avatar
  • vaadin-button
  • vaadin-checkbox
  • vaadin-checkbox-group
  • vaadin-combo-box
  • vaadin-custom-field
  • vaadin-date-picker
  • vaadin-date-time-picker
  • vaadin-email-field
  • vaadin-icon
  • vaadin-integer-field
  • vaadin-list-box
  • vaadin-message-input
  • vaadin-multi-select-combo-box
  • vaadin-number-field
  • vaadin-password-field
  • vaadin-select
  • vaadin-side-nav-item
  • vaadin-tab
  • vaadin-text-area
  • vaadin-text-field
  • vaadin-time-picker

@HerbertsVaadin HerbertsVaadin marked this pull request as ready for review August 19, 2025 10:51
@web-padawan web-padawan force-pushed the feat/sd-42-has-tooltip branch from 6b48919 to 227fa96 Compare August 25, 2025 08:18
@web-padawan web-padawan changed the title feat: Add has-tooltip attribute when tooltip used on component / element feat: add has-tooltip attribute to components using TooltipController Aug 25, 2025
Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

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

I changed my mind regarding setting has-tooltip on the target as it can end up with attribute being added to some unexpected elements. Updated to set has-tooltip only in components using TooltipController for now. Also reverted some JSDoc changes.

@web-padawan
Copy link
Member

Updated to not set has-tooltip for components using setManual(true) especially grid and menu-bar.
These will require adding separate logic to set has-tooltip on the menu-bar button, or part name on the cell.

IMO it can be addressed later in separate PRs, I'll merge this one as is and then look into menu-bar / grid.

@web-padawan web-padawan force-pushed the feat/sd-42-has-tooltip branch 5 times, most recently from e37c747 to 22b77bd Compare August 25, 2025 13:26
@web-padawan web-padawan force-pushed the feat/sd-42-has-tooltip branch from 22b77bd to eda4c81 Compare August 25, 2025 13:30
@web-padawan web-padawan changed the title feat: add has-tooltip attribute to components using TooltipController feat: add has-tooltip attribute to components supporting slotted tooltips Aug 25, 2025
@sonarqubecloud
Copy link

@web-padawan web-padawan merged commit 4110f05 into main Aug 25, 2025
9 checks passed
@web-padawan web-padawan deleted the feat/sd-42-has-tooltip branch August 25, 2025 13:51
web-padawan added a commit that referenced this pull request Aug 26, 2025
…tip (#10028)

Co-authored-by: web-padawan <iamkulykov@gmail.com>
web-padawan added a commit that referenced this pull request Aug 26, 2025
…tip (#10028) (#10076)

Co-authored-by: Herberts <80950643+HerbertsVaadin@users.noreply.github.com>
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.

2 participants