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

sparkle内にリンクを入れるとクリック不能になる #11021

Closed
tai-cha opened this issue Jun 16, 2023 · 5 comments · Fixed by #11075
Closed

sparkle内にリンクを入れるとクリック不能になる #11021

tai-cha opened this issue Jun 16, 2023 · 5 comments · Fixed by #11075
Labels
🐛Bug Unexpected behavior packages/frontend Client side specific issue/PR

Comments

@tai-cha
Copy link
Contributor

tai-cha commented Jun 16, 2023

💡 Summary

sparkleで装飾したリンクがクリック不能になっている
(一応下に表示されるプレビュー部分で遷移可能ではある)

おそらくsparkleの.rootpointer-events: none;が指定されていてその配下のリンクにはpointer-eventsの指定がないため反応しない?

🥰 Expected Behavior

リンクをクリック・タップした際にリンク先に遷移できる

🤬 Actual Behavior

sparkle以下のリンクはクリックしても何も起きない

📝 Steps to Reproduce

  1. 次のMFMを入力
    • $[sparkle https://example.com]
  2. リンク部分をクリック

📌 Environment

💻 Frontend

  • Model and OS of the device(s): Windows 11 22H2(Build 22621.1702)

  • Browser: Chrome 114.0.5735.110

  • Server URL: misskey.io

  • Misskey: 13.13.2

@tai-cha tai-cha added the ⚠️bug? This might be a bug label Jun 16, 2023
@tai-cha
Copy link
Contributor Author

tai-cha commented Jun 16, 2023

仕様な気もしてきた、どうなんだろう

@syuilo syuilo added 🐛Bug Unexpected behavior packages/frontend Client side specific issue/PR and removed ⚠️bug? This might be a bug labels Jun 16, 2023
@mappi-pr

This comment was marked as resolved.

@mappi-pr

This comment was marked as resolved.

@mappi-pr
Copy link
Contributor

mappi-pr commented Jul 3, 2023

.rootじゃなくて、svg要素を直接pointer-events: none;としたら、
sparkle貫通してクリックできそうでした。
image

@tai-cha
Copy link
Contributor Author

tai-cha commented Jul 3, 2023

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Unexpected behavior packages/frontend Client side specific issue/PR
Projects
None yet
3 participants