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

nextjs after page refresh and random interaction icons are oversizing #512

Open
oak93 opened this issue May 31, 2022 · 0 comments
Open

nextjs after page refresh and random interaction icons are oversizing #512

oak93 opened this issue May 31, 2022 · 0 comments

Comments

@oak93
Copy link

oak93 commented May 31, 2022

Describe the bug
we are using fontawesome kit to use icons in our nextjs project. it works great but after some page refreshes, randomly, icons size are oversizing. we have seen this issue #134 but it only provides a solution for those who use the library instead of the kit. (also again this documentation only includes solution with library, link) Is there any chance of fixing this issue by using the kit? Could not find anything under settings panel of the kit dashboard. thank you

we are using this solution to fix the issue by including this code in our base.css file. but it feels hacky.

/*
 * FontAwesome on page refresh and after some interaction oversizing issue workaround.
 * @see https://github.com/FortAwesome/react-fontawesome/issues/134
 */
.svg-inline--fa {
  height: 1em;
  vertical-align: -0.125em;
}

Expected behavior
icons should not oversize unexpectedly when refreshing and some random button clicks.

Desktop (please complete the following information):

  • Browser [e.g. chrome, safari]: chrome
  • Version: 101.0.4951.64
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