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

feat: add tooltips to cards #446

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joe128
Copy link

@joe128 joe128 commented Aug 24, 2024

Partial implementation of #444:

Added 2 Params to shortcode card:

  • linktooltip
    Hextra: Tooltip for Link

  • tagtooltip
    Hextra: Tooltip for Tag

open TODOs

  • Add Documentation to fa and zh-cn
  • Maybe Styling in Dark-Mode

Copy link

netlify bot commented Aug 24, 2024

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit 69585ee
🔍 Latest deploy log https://app.netlify.com/sites/hugo-hextra/deploys/66ca56b7451c390008a4a2ed
😎 Deploy Preview https://deploy-preview-446--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Owner

@imfing imfing left a comment

Choose a reason for hiding this comment

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

Hi @joe128 thank you for the PR!

I appreciate the effort you’ve put into this. but I’m not sure if using the title attribute of a link as a tooltip is the best approach.

While allowing users to set a link title for a card is a good idea, I believe we should avoid using title as a tooltip as they serve different purposes.

@joe128
Copy link
Author

joe128 commented Aug 30, 2024

The problem is that there is no "standard" for tooltips but most browsers interpret the title as a tooltip.
So, what do you (@imfing) think about using a "data-tooltip" (HTML data-* Attribute) for the two elements?

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