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(input): display error text #68

Merged
merged 1 commit into from
Dec 8, 2024
Merged

Conversation

Sukaato
Copy link
Member

@Sukaato Sukaato commented Dec 5, 2024

fixes: #67


What is the current behavior?

The error text is shown only if the input has :user-invalid, which means it have to be validated by constrain that can not be controlled for the moment

What is the new behavior?

  • display helper text by default
  • display error text if present
  • hide helper text if error text is present
  • add text ellipsis on input

Does this introduce a breaking change?

  • Yes
  • No
    probably, but poppy-ui still in dev

Other information

This changes will affect all input that have helper text and error text properties

I also fix the ghost variant of the input, which is now transparent by default, and opaque when focused

new behavior:
- display helper text by default
- display error text if present
- hide helper text if error text is present
- add text ellipsis on input

fixes: #67
@Sukaato Sukaato requested a review from Xenxia December 5, 2024 18:42
@github-actions github-actions bot added bug Something isn't working package: core @poppy-ui/core package related labels Dec 5, 2024
@Sukaato Sukaato merged commit d3b3dcd into main Dec 8, 2024
16 checks passed
@Sukaato Sukaato deleted the bug/67-display-input-error branch December 8, 2024 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package: core @poppy-ui/core package related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(core): input with error text are not shown
2 participants