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

Content credentials only pop up on 1st image on mouse over #160

Open
brianchau opened this issue Apr 23, 2024 · 2 comments
Open

Content credentials only pop up on 1st image on mouse over #160

brianchau opened this issue Apr 23, 2024 · 2 comments
Labels
question Further information is requested

Comments

@brianchau
Copy link

brianchau commented Apr 23, 2024

I wrapped the on 3 images but only the first one displayed the content credentials on mouse over. Codes for each image are like below:

Screenshot 2024-04-23 153033

Any suggestion what I may have missed?

Another question I have is what the tag should be for mouse click instead of mouse over?

Thank you.

@dkozma dkozma added the question Further information is requested label Apr 23, 2024
@dkozma
Copy link
Collaborator

dkozma commented Apr 23, 2024

@brianchau How are you passing the content credentials to the cai-manifest-summary component? Can you show the code for that?

You should be able to pass trigger="click:mouseleave" to the cai-popover component to make it appear on click.

@brianchau
Copy link
Author

Thank you Dave. Got this working using trigger="click:mouseleave" as you suggested. Click "CR" icon now displays the popup. MouseLeave hides the popup.
How to change it to toggle so that it would hide the popup when click again on the "CR" icon, like the behavior in home page of https://contentcredentials.org/
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants