Skip to content

fix(ui): remove duplicate native tooltip on like button#1708

Merged
danielroe merged 1 commit intonpmx-dev:mainfrom
Moshyfawn:fix/like-button-duplicate-tooltip
Feb 27, 2026
Merged

fix(ui): remove duplicate native tooltip on like button#1708
danielroe merged 1 commit intonpmx-dev:mainfrom
Moshyfawn:fix/like-button-duplicate-tooltip

Conversation

@Moshyfawn
Copy link
Copy Markdown
Contributor

🔗 Linked issue

This issue is small enough, creating an issue would have been more noise.

🧭 Context

Like button shows both the component tooltip and the browser native tooltip on hover.

📚 Description

Removed the title attribute from the atproto like button - aria-label is kept for a11y, matching all other tooltip usages.

Before After
duplicate tooltips on like button - component tooltip and native title tooltip both visible single component tooltip on like button - no duplicate native tooltip

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 27, 2026 2:54pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 27, 2026 2:54pm
npmx-lunaria Ignored Ignored Feb 27, 2026 2:54pm

Request Review

@danielroe danielroe enabled auto-merge February 27, 2026 14:54
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@danielroe danielroe added this pull request to the merge queue Feb 27, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5e3b034 and d008edb.

📒 Files selected for processing (1)
  • app/pages/package/[[org]]/[name].vue
💤 Files with no reviewable changes (1)
  • app/pages/package/[[org]]/[name].vue

📝 Walkthrough

Walkthrough

The PR removes dynamic title attribute binding from the Like button on the package page. Three lines of code that computed and bound the title based on user-like state were deleted, whilst the aria-label binding remains intact. The title attribute previously displayed whether the user had liked the package.

Possibly related PRs

  • PR 957: Adds dynamic title binding with i18n strings on the same Like button, directly counteracting this removal of the title functionality.
  • PR 926: Modifies Like button markup and DOM structure on the package page, relocating the like count within the button element.

Suggested reviewers

  • danielroe
  • wojtekmaj
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description clearly explains the problem (duplicate tooltips) and the solution (removing the title attribute whilst keeping aria-label for accessibility), matching the changeset.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Merged via the queue into npmx-dev:main with commit 365bd9f Feb 27, 2026
18 checks passed
@github-actions
Copy link
Copy Markdown

Thanks for your first contribution, @Moshyfawn! 👏

We'd love to welcome you to the npmx community. Come and say hi on Discord! And once you've joined, visit npmx.wamellow.com to claim the contributor role.

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