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

focus-visible is triggered when opening a dialog with a button that contains svg #2953

Open
aygee opened this issue Jun 14, 2024 · 0 comments

Comments

@aygee
Copy link

aygee commented Jun 14, 2024

Bug report

When a dialog is opened with a button that contains svg, :focus-visible style is triggered. This seems to happen on Safari on MacOS and also Safari and Chrome on iOS.

Current Behavior

Screen.Recording.2024-06-14.at.5.49.25.pm.mov

Expected behavior

The :focus-visible style should not be triggered

Reproducible example

CodeSandbox Template

Your environment

Software Name(s) Version
Radix Package(s) @radix-ui/react-dialog ^1.0.5
Browser Safari on MacOS & iOS, Google Chrome on iOS MacOS/Safari v17.1.2, iOS v16.7.8
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

No branches or pull requests

1 participant