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

tailwind form elements need page refresh to apply utility styles #368

Closed
dremsol opened this issue Mar 27, 2021 · 1 comment
Closed

tailwind form elements need page refresh to apply utility styles #368

dremsol opened this issue Mar 27, 2021 · 1 comment

Comments

@dremsol
Copy link

dremsol commented Mar 27, 2021

Tailwind form elements are being normalized/reset on first page load. When refreshing page, utility styles are being applied.

I've replicated the issue in following repo. Please navigate to Forms page in header. This page contains a Unstyled Form which purely uses default styling after reset. the second form is an Styled Form. Please check the border color of styled form when focussed. After refreshing the page the styles are being applied.

Taking a look at #277 I think this issue is related.

@ben-rogerson
Copy link
Owner

Thanks for lodging this issue.

It looks like the same issue as #277 - I wish I had control over the global style ordering in styled-components.

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