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(material/datepicker): set aria-expanded on datepicker toggle #30438

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Feb 3, 2025

Fixes that the datepicker toggle's button wasn't setting aria-expanded properly.

Fixes #30406.

Fixes that the datepicker toggle's button wasn't setting `aria-expanded` properly.

Fixes angular#30406.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Feb 3, 2025
@crisbeto crisbeto requested a review from a team as a code owner February 3, 2025 11:43
@crisbeto crisbeto requested review from mmalerba and wagnermaciel and removed request for a team February 3, 2025 11:43
'a mat-form-field',
fakeAsync(() => {
expect(fixture.nativeElement.querySelector('mat-form-field')).toBeFalsy();
it('should set aria-labelledby to the one from the input, if not placed inside a mat-form-field', fakeAsync(() => {
Copy link
Member Author

Choose a reason for hiding this comment

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

This test didn't change, the formatting was just weird after the Prettier change.

@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Feb 3, 2025
@crisbeto crisbeto removed the request for review from mmalerba February 3, 2025 17:10
@crisbeto crisbeto merged commit f15a939 into angular:main Feb 3, 2025
23 of 25 checks passed
@crisbeto
Copy link
Member Author

crisbeto commented Feb 3, 2025

The changes were merged into the following branches: main, 19.1.x

crisbeto added a commit that referenced this pull request Feb 3, 2025
)

Fixes that the datepicker toggle's button wasn't setting `aria-expanded` properly.

Fixes #30406.

(cherry picked from commit f15a939)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: material/datepicker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(Datepicker): mat-datepicker-toggle does not announce expanded/collapsed state for screen readers
3 participants