Skip to content

Add has-value class to QuesoField when content is present#272

Open
antoine1111 wants to merge 1 commit intodevfrom
271-Add-has-value-class-on-QuesoField-with-content
Open

Add has-value class to QuesoField when content is present#272
antoine1111 wants to merge 1 commit intodevfrom
271-Add-has-value-class-on-QuesoField-with-content

Conversation

@antoine1111
Copy link
Copy Markdown
Collaborator

Summary

Adds a has-value CSS class on QuesoField when the field has real content (text, selection, etc.). This allows styling fields based on whether they are filled or empty, including when there is no placeholder.

The class is applied for:

  • QuesoTextField – non-empty text (whitespace trimmed)
  • QuesoTextArea – non-empty text
  • QuesoPassword – non-empty text
  • QuesoSelect – selected value
  • QuesoSelectMultiple – at least one option selected

Closes #271


Breaking changes

None. hasValue is an optional prop and the new class is additive only.

@antoine1111 antoine1111 self-assigned this Feb 18, 2026
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.

Add has-value class on QuesoField with content

1 participant