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

USWDS-Site: Add changelog for date range picker aria-disabled updates [#6013] #2817

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

RachelCorsino
Copy link
Contributor

@RachelCorsino RachelCorsino 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.

@RachelCorsino RachelCorsino changed the title Rc changelog date range picker USWDS-Site: Add changelog for date range picker aria-disabled updates [#6013] Sep 9, 2024
@RachelCorsino RachelCorsino 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 👍

_data/changelogs/component-date-range-picker.yml Outdated Show resolved Hide resolved
@@ -2,6 +2,14 @@ title: Date picker
type: component
changelogURL:
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!

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.

3 participants