As I embark on my journey of building my very first NextJS site, I have encountered a strange anomaly.
Within my site's header, I have incorporated several <Link />
components that serve as links to different pages of my site. These links are adorned with simple focus styles created using the :focus
selector in CSS.
Upon clicking on one of the links, the focus styles are correctly applied and the site smoothly transitions to the new URL. However, I have noticed that the focus styles persist even after the new page has finished loading.
Is there a method to eliminate the focus state during the transition to a new page?
I am hopeful that a knowledgeable individual can assist this fledgling NextJS developer. Thank you.