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): adds comparison ids and aria-describedby spans #30040

Merged

Conversation

essjay05
Copy link
Contributor

Updates Angular Components Datepicker calendar-body .ts and .html files to add id values for if there is a comparison start/end date and to provide values to their respective html values to provide an aria-describedby value to be announced for screenreaders when comparison dates are present.

Before screenshot button no aria-describedby
Before screenshot no comparison date spans
Before fix screencast

After screenshot button aria-describedby
After screenshot span with respective aria-describedby id
After fix screencast

Fixes b/195600299

Updates Angular Components Datepicker calendar-body .ts and
.html files to add id values for if there is a comparison
start/end date and to provide values to their respective
html values to provide an aria-describedby value to be
announced for screenreaders when comparison dates are present.

Fixes b/195600299
@essjay05 essjay05 requested a review from a team as a code owner November 19, 2024 00:32
@essjay05 essjay05 requested review from mmalerba and wagnermaciel and removed request for a team November 19, 2024 00:32
Updates previous fix to remove '-' from the comparison date labels
to allow proper id recognition for the aria-describedby.

Fixes b/195600299
@andrewseguin andrewseguin added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Nov 19, 2024
Updates goldens for previous fix.
@andrewseguin andrewseguin merged commit e8d009f into angular:main Nov 19, 2024
18 of 21 checks passed
andrewseguin pushed a commit that referenced this pull request Nov 19, 2024
…ans (#30040)

* fix(material/datepicker): adds comparison ids and aria-describedby spans

Updates Angular Components Datepicker calendar-body .ts and
.html files to add id values for if there is a comparison
start/end date and to provide values to their respective
html values to provide an aria-describedby value to be
announced for screenreaders when comparison dates are present.

Fixes b/195600299

* refactor(material/datepicker): removes '-' for proper id recognition

Updates previous fix to remove '-' from the comparison date labels
to allow proper id recognition for the aria-describedby.

Fixes b/195600299

* fix(material/datepicker): update goldens

Updates goldens for previous fix.

(cherry picked from commit e8d009f)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants