-
Notifications
You must be signed in to change notification settings - Fork 5
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
Implement success state for OnyxFormElement #573
Comments
larsrickert
changed the title
Implement input copy/clear icon and valid state
Implement input/textarea copy/clear icon and valid state
May 22, 2024
12 tasks
larsrickert
changed the title
Implement input/textarea copy/clear icon and valid state
Implement input/textarea/select copy/clear icon and valid/success state
Jun 25, 2024
BoppLi
changed the title
Implement input/textarea/select copy/clear icon and valid/success state
Implement copy/clear icon and valid/success state for input/textarea/select
Jun 26, 2024
BoppLi
changed the title
Implement copy/clear icon and valid/success state for input/textarea/select
Implement copy/clear icon and valid/success state for input/select
Jun 26, 2024
@jannick-ux Open questions:
|
|
mj-hof
added
the
0-refinement
All issues that can or need to be estimated in our next refinement
label
Jul 29, 2024
JoCa96
removed
the
0-refinement
All issues that can or need to be estimated in our next refinement
label
Aug 1, 2024
JoCa96
changed the title
Implement copy/clear icon and valid/success state for input/select
Implement success state for OnyxFormElement
Sep 18, 2024
Story was split and "Copy action" is moved to #1887 |
JoCa96
added
the
0-refinement
All issues that can or need to be estimated in our next refinement
label
Sep 18, 2024
mj-hof
removed
the
0-refinement
All issues that can or need to be estimated in our next refinement
label
Oct 9, 2024
MajaZarkova
added a commit
that referenced
this issue
Nov 4, 2024
…2031) <!-- Is your PR related to an issue? Then please link it via the "Relates to #" below. Else, remove it. --> Relates to #573 Add successMessage prop to useCustomValidity composable. This property will be provided in OnyxForm component and later injected by it's child input components to represent the success state.
MajaZarkova
added a commit
that referenced
this issue
Nov 25, 2024
…2050) <!-- Is your PR related to an issue? Then please link it via the "Relates to #" below. Else, remove it. --> Relates to #573 Implement success messages to OnyxFormElement and success state of OnyxInput --------- Co-authored-by: Jonathan Carle <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
4 tasks
MajaZarkova
added a commit
that referenced
this issue
Nov 25, 2024
<!-- Is your PR related to an issue? Then please link it via the "Relates to #" below. Else, remove it. --> Relates to #573 Implemented success styles for OnyxTextarea ## Checklist - [x] The added / edited code has been documented with [JSDoc](https://jsdoc.app/about-getting-started) - [x] All changes are documented in the documentation app (folder `apps/docs`) - [x] If a new component is added, at least one [Playwright screenshot test](https://github.com/SchwarzIT/onyx/actions/workflows/playwright-screenshots.yml) is added - [x] A changeset is added with `npx changeset add` if your changes should be released as npm package (because they affect the library usage) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depends on
Why?
There are cases where it is necessary to communicate an explicit
success
state for an FormElement:The (validation)
valid
state independent of thesuccess
state:success
state is set explicitly and not the implicit result of validationerror
state has higher priority than thesuccess
success
state does not change or affect the validationDesign
https://www.figma.com/design/EBi98T51T9fGfjrYYfsulg/onyx---Archive?node-id=3427-73120&t=WFV3kII28sKTTZft-4
Acceptance criteria
FormMessage
is createdmessage
,successMessage
,errorMessage
all use the new type1.
errorMessage
2. html native validation error message
3.
successMessage
4.
message
successMessage
is shown, a green checkmark symbol is shown on the right -> Follow up Implement green checkmark on OnyxInput #2143OnyxFormElement
are extended to support the new APIonyx-form-element__footer
when any message is shown: Right now the gap is from the parent is applied even when no message is visibleDefinition of Done
In Approval
Review
Implementation details
Consider that success might be shown without message, but error should never be shown without message. Also, do we still need a message for a11y reasons?
The text was updated successfully, but these errors were encountered: