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

IBX-4277: [UDW] Tooltips from left menu aren't visible #642

Merged
merged 5 commits into from
Dec 1, 2022

Conversation

GrabowskiM
Copy link
Contributor

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-4277
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

Copy link
Contributor

@katarzynazawada katarzynazawada left a comment

Choose a reason for hiding this comment

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

Tooltips are not visible when switching to Bookmark tab. They only appear when you click on an item, see https://recordit.co/fGGmcvo2bO

Copy link
Contributor

@tischsoic tischsoic left a comment

Choose a reason for hiding this comment

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

I think it would be good to fix it with the use of MutationObserver from
(given there are no downsides 🤔 )

observer.observe(doc.querySelector('body'), observerConfig);

@@ -35,7 +43,14 @@ const TabSelector = () => {
});

return (
<div className={className} key={tab.id} onClick={onClick} title={tab.label}>
<div
ref={selectorItemTooltipCallbackRef}
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably this would also work 🤔

Suggested change
ref={selectorItemTooltipCallbackRef}
ref={ibexa.helpers.tooltips.parse}

@tischsoic tischsoic self-requested a review November 22, 2022 12:47
@@ -159,11 +167,13 @@
bootstrap.Tooltip.getOrCreateInstance(tooltipNode).hide();
}
};

observer.observe(doc.querySelector('body'), observerConfig);
const observe = (baseElement = doc.querySelector('body')) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it would be good to have the same default value as in parse? 🤔

Suggested change
const observe = (baseElement = doc.querySelector('body')) => {
const observe = (baseElement = doc) => {

@sonarcloud
Copy link

sonarcloud bot commented Nov 28, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dew326 dew326 merged commit 5f8f391 into 4.2 Dec 1, 2022
@dew326 dew326 deleted the IBX-4277-udw-selector-tooltips branch December 1, 2022 07:16
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.

8 participants