Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@CTGM-Bixal
Copy link
Contributor

@CTGM-Bixal CTGM-Bixal commented Sep 9, 2024

Summary

This PR provides a changelog entry for the updates made to the date range picker component. The readonly attribute has been added to aria-disabled to mimic the disabled behaviors while remaining discoverable for accessibility purposes.

Related issue

USWDS - Date Picker: Updated toggleCalendar function to account for aria-disabled attribute + readonly #6013

Preview link

USWDS-Site: Date Range Picker

Testing and review

  1. Ensure changelog entry shows up under "Latest Updates" on Date Range Picker component page.

@CTGM-Bixal CTGM-Bixal changed the title Rc changelog date range picker USWDS-Site: Add changelog for date range picker aria-disabled updates [#6013] Sep 9, 2024
@CTGM-Bixal CTGM-Bixal marked this pull request as ready for review September 16, 2024 14:30
Copy link
Contributor

@mahoneycm mahoneycm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick fix for the PR number and this should be good to go 👍

items:
- date: NNNN-NN-NN
summary: Added `aria-disabled` to the list of expected attributes.
summaryAdditional: Now, the component will disable toggle when the `aria-disabled` attribute is present.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Should we mention that the input is disabled as well?

Suggested change
summaryAdditional: Now, the component will disable toggle when the `aria-disabled` attribute is present.
summaryAdditional: Now, the component will disable the text input and calendar toggle when the `aria-disabled` attribute is present.

@mahoneycm
Copy link
Contributor

Oh it looks like we have two PRs for the same work. This and #2794.

We generally only need one changelog PR for each USWDS PR. Even though this is a second changelog/component, we can bundle both changes in one PR.

#2794 seems to have more discussion so I opt we close this PR in favor of that one, and bring the date range picker changes there!

@amyleadem
Copy link
Contributor

Closing this PR in favor of #2794.

@amyleadem amyleadem closed this Sep 30, 2024
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.

4 participants