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

refactor: prepare tooltip overlay mixin for using by popover #7403

Merged
merged 1 commit into from
May 13, 2024

Conversation

web-padawan
Copy link
Member

Description

This PR is needed for reusing vaadin-tooltip-overlay position logic in vaadin-popover:

  • Moved hidden attribute setting to the actual overlay elements that use this mixin,
  • Replaced hardcoded custom CSS property with an overridable _tagNamePrefix.

Type of change

  • Refactor

Copy link

sonarcloud bot commented May 13, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -48,7 +55,7 @@ export const TooltipOverlayMixin = (superClass) =>
_updatePosition() {
super._updatePosition();

if (!this.positionTarget) {
if (!this.positionTarget || !this.opened) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Added this check to align with the corresponding logic in PositionMixin.

@web-padawan web-padawan merged commit c0e9352 into main May 13, 2024
9 checks passed
@web-padawan web-padawan deleted the refactor/tooltip-overlay-mixin branch May 13, 2024 11:43
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.0.alpha1 and is also targeting the upcoming stable 24.5.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants