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

Inputs (eg. text, checkbox) lose their browser default focus styling #38

Closed
Lodesa opened this issue Mar 24, 2021 · 3 comments
Closed

Comments

@Lodesa
Copy link

Lodesa commented Mar 24, 2021

If I import the player onto a page with inputs, the default blue outline that Chrome adds when focusing on an input element no longer appears.

import { Player } from "@lottiefiles/react-lottie-player";
export default () => <input type='text'/>

In the above example their will be no outline on focus. If you comment out the import the focus outline will return.

It appears to be caused by this CSS with a very generic selector:
https://github.com/LottieFiles/lottie-react/blob/master/src/Styles.css#L74

@karamalie
Copy link
Contributor

Noted. Will update the css for next version bump

@Lodesa
Copy link
Author

Lodesa commented Apr 2, 2021

Noted. Will update the css for next version bump

Thank you so much.

@karamalie
Copy link
Contributor

Issue should be fixed now. focus outline will only be set within the Lottie container

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

2 participants