When one element should be displayed while the other should not, they are given classes based on their relationship with each other. View code
There is a login button component with a border gradient, along with an avatar component.
Initially, the avatar component has the same class as the authorization component.
This bug occurs both during development hot module replacement and in production. Switching to other pages resolves the issue temporarily.
This bug is present in various parts of the project where we use styled-components, classnames, scss, bootstrap, and mui. We plan to remove boostrap && scss soon. We are using next.js for server side rendering and typescript.
Here is another example: Initial page load