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: Don't pass through form field context to inputs in date range picker dropdown #1585

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

avinashbot
Copy link
Member

@avinashbot avinashbot commented Sep 26, 2023

Description

The form field wrapper should only auto-label the trigger, and not indiscriminately extend out to every input inside the dropdown. This cancels out the form field context around the dropdown.

Related links, issue #, if available: AWSUI-22471

How has this been tested?

Added tests.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (d8b04de) 94.04% compared to head (30ebbd7) 94.05%.
Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1585   +/-   ##
=======================================
  Coverage   94.04%   94.05%           
=======================================
  Files         649      649           
  Lines       17565    17568    +3     
  Branches     5767     5772    +5     
=======================================
+ Hits        16519    16523    +4     
+ Misses        977      976    -1     
  Partials       69       69           
Files Coverage Δ
src/date-range-picker/index.tsx 97.11% <100.00%> (ø)

... and 11 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@avinashbot avinashbot marked this pull request as ready for review September 29, 2023 13:43
@avinashbot avinashbot requested a review from a team as a code owner September 29, 2023 13:43
@avinashbot avinashbot requested review from pan-kot and removed request for a team September 29, 2023 13:43
pan-kot
pan-kot previously approved these changes Oct 2, 2023
@avinashbot avinashbot merged commit 50b968e into main Oct 2, 2023
31 checks passed
@avinashbot avinashbot deleted the date-range-picker-formfield branch October 2, 2023 12:06
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.

2 participants