Relative Content

Tag Archive for reactjsnext.jstailwind-css

The issue of positioning discrepancies between Android and iOS

I’m having issues with this part of my Next.js code. Why is the positioning of the span that contains the number not displaying properly on iOS, but working fine on Android? What I basically want is to display the number on the top right of the icons.

React, Tailwind, NextJS: Button’s color is not updating when clicked until after I change the specified color

I’m using tailwind to conditionally highlight a button based on the URL in a client component in NextJS. However, the buttons color does not display properly. While the html in the page does update when I check the dev tools (in both Safari and Chrome), what is displayed does not. This issue goes away when I change the color in the tailwind className, but returns if I reset the color to its original state. I presume this has something to do with how and when React is updating the browser, but I’m struggling to overcome that.