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

Fix tootip overlay closing. #1440

Draft
wants to merge 14 commits into
base: dev
Choose a base branch
from
Draft

Fix tootip overlay closing. #1440

wants to merge 14 commits into from

Conversation

natacha-beck
Copy link
Contributor

Multiple little feature:

  • Unable the closing functionality when leaving html_tool_tip.
  • Add a close at the bottom of the html_tool_tip
  • Unable the opening of a html_tool_tip when mouseenter only if no other are open.
  • It is now possible to open multiple html_tool_tip only if click on the link instead mouseenter

@MontrealSergiy
Copy link
Contributor

Can you refer the issue(s) it is using by id or in Development section?

@natacha-beck
Copy link
Contributor Author

Fix the #1433

Copy link
Contributor

@MontrealSergiy MontrealSergiy left a comment

Choose a reason for hiding this comment

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

I do not like that same control ( underlined "more") behaves differently on different pages.
But the PR address the issue as requested.

Maybe we can rename it into 'info', 'card', 'infocard' or '+' ?

@MontrealSergiy
Copy link
Contributor

MontrealSergiy commented Oct 28, 2024

The request recommends to use logic more similar to task help, but the PR still resolves the issue, even though behaviour of 'more' control diverges from the rest of cbrain.

Perhaps, for the case of multiple windows I would add somewhere a button "close all info-cards". The page reload will close all the open cards, yet in our mobile age fewer and fewer users understand what reload button is for.

Screenshot from 2024-10-28 14-41-16

@natacha-beck
Copy link
Contributor Author

I do not like that same control ( underlined "more") behaves differently on different pages. But the PR address the issue as requested.

Maybe we can rename it into 'info', 'card', 'infocard' or '+' ?

Can you let me know which pageS you are referring to ?

@MontrealSergiy
Copy link
Contributor

for example, https://portal.cbrain.mcgill.ca/tools

@natacha-beck natacha-beck marked this pull request as draft October 28, 2024 21:47
@natacha-beck
Copy link
Contributor Author

It have the same behaviour on both page ( i just tested, let me know if it is not the case).

Also I look in the CBRAIN portal and notice some strange behaviour on the tool page:

image

Will look at it,

@MontrealSergiy
Copy link
Contributor

MontrealSergiy commented Oct 28, 2024

Ok, you are right. I guess I just do not like that more element. The fix to tool page can then go to a separate issue/pr

flash[:error] = "You cannot change the password for your account." if attr_to_update[:password].present?
# Do not update password if user must use globus (or other oidc)
if user_must_link_to_oidc?(@user) && attr_to_update[:password].present?
flash[:error] = "You cannot change the password for your account because you should use OpenID." if attr_to_update[:password].present?
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure how OpenID relates to tootips

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It´s not by bad, I will untangle my PR.

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