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

fix .is-valid and .is-invalid in css #30

Merged
merged 3 commits into from
Jan 3, 2025

Conversation

lilabyte
Copy link
Contributor

If you use newest version of the flyonui with Next.js there is an error on page loading:

Parsing css source code failed
  3220 | }
  3221 | .select:focus.is-valid ~ .select-floating-label,
> 3222 | .validate .select:focus:is-valid ~ .select-floating-label,
       |                          ^
  3223 | .select:focus.is-valid ~ .select-filled-label,
  3224 | .validate .select:focus:is-valid ~ .select-filled-label {
  3225 |   --tw-text-opacity: 1;

'is-valid' is not recognized as a valid pseudo-class. Did you mean '::is-valid' (pseudo-element) or is this a typo? at [project]/src/app/globals.css:3221:25

this fixes it

@PruthviPraj00
Copy link
Member

hello @lilabyte,

Thank you for bringing this to our attention! Instead of using classes, it should be :valid and :invalid rather than :is-valid and :is-invalid, as the latter are not valid pseudo-classes.

Could you kindly revise the pull request with these changes? We truly appreciate your contribution!

.validate .textarea:focus:invalid ~ .textarea-floating-label,

@lilabyte
Copy link
Contributor Author

@PruthviPraj00, sure changed.

@fuaditrockz
Copy link

How about the status? Is it already merged? @lilabyte

@yagnikvamja yagnikvamja merged commit d31f4ea into themeselection:main Jan 3, 2025
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

Successfully merging this pull request may close these issues.

4 participants