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

File Input Button for Safari #1350

Closed
lorenzolewis opened this issue Nov 12, 2022 · 1 comment · Fixed by #1351
Closed

File Input Button for Safari #1350

lorenzolewis opened this issue Nov 12, 2022 · 1 comment · Fixed by #1351

Comments

@lorenzolewis
Copy link
Contributor

In Safari 16.1 (18614.2.9.1.12), the File Input component's button doesn't render correctly.

Safari:
Screenshot 2022-11-12 at 20 47 46

Edge (Chromium):
Screenshot 2022-11-12 at 20 48 14

Notice how the corners aren't properly rounded on the button. This is using the "night" theme but is the same for different themes.

@lorenzolewis
Copy link
Contributor Author

lorenzolewis commented Nov 12, 2022

I seems like this could be caused by the tailwind's file:rounded property not being set and I was able to fix it by adding file:rounded-md for example into the component class.

See the note on Tailwind's border reset not being applied having to use this class at the bottom of this heading:
https://tailwindcss.com/docs/hover-focus-and-other-states#file-input-buttons

Edit: This isn't from the border reset util, it's because of the missing file:rounded-md as I mentioned above

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 a pull request may close this issue.

1 participant