Notifications with links in it - weird autofocus
I am using the database notifications in my livewire component (outside panel). Everything works fine, except one thing: When adding a link to the notification, it shows a weird circle around the first link (see screenshot). This only happens to the first link. It looks like its not "autofocus" but "focus-visible". Adding
focus:outline-0 focus:border-transparent focus:ring-0
to the link doesnt help at all.
How to prevent this? This is on Desktop (Google Chrome under Linux) and mobile (chrome under Android) as well.
7 Replies
Any ideas anyone?
How are you building that notification?
@toeknee Do you mean this?
Yep
And this is the resulting HTML from dev toolbar
Can you create a reproduction repo so we can similate what's causing it?
I will try, but I guess that it is a very specific problem, so it will be hard to simulate the exact behavior without using to much internal code. I will post when I finished it