You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary:
- Added `error` prop to the `Combobox` component to handle the error state.
- Included an X icon to clear the combobox selection in single-selection mode. This is useful for the user to quickly reset the value when needed.
- Textbox: Modifies the order in which the `aria-invalid` attribute is applied
to the input element.
Issue: WB-1757
## Test plan:
1. Navigate to the `Error` story: /?path=/story/packages-dropdown-combobox--error
2. Verify that the error state is displayed and `aria-invalid` is set `true`.
3. Open the listbox and select one option.
4. Verify that the error is gone and `aria-invalid=false`.
5. Verify that the "Clear selection" button (X) is now visible.
6. Click on the X button.
7. Verify that the error is visible again and `aria-invalid=true`.
https://github.com/user-attachments/assets/22f69acd-9345-45aa-a626-ea0822a85c29
Author: jandrade
Reviewers: somewhatabstract, beaesguerra, jandrade, marcysutton
Required Reviewers:
Approved By: somewhatabstract, beaesguerra
Checks: ✅ Chromatic - Get results on regular PRs (ubuntu-latest, 20.x), ✅ Test (ubuntu-latest, 20.x, 2/2), ✅ Check build sizes (ubuntu-latest, 20.x), ✅ Test (ubuntu-latest, 20.x, 1/2), ✅ Lint (ubuntu-latest, 20.x), ✅ Chromatic - Build on regular PRs / chromatic (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ⏭️ Chromatic - Skip on Release PR (changesets), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ⏭️ dependabot, ✅ gerald
Pull Request URL: #2321
0 commit comments