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
feat(datepicker): indicate selected day in aria label #242
Conversation
@d-kostov-dev, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction. |
Thank you, 🤖 Clarity Release Bot |
4ab8d89
to
1b6035f
Compare
I force pushed this branch to get the PR building for a11y review and to reword the commit message to follow our conventions. |
@d-kostov-dev, your company's legal contact has approved your signed contributor license agreement. It will also be reviewed by VMware, but the merge can proceed. |
Thanks for your contribution @d-kostov-dev. We're discussing this fix with our Accessibility contact (who will most likely be speaking to yours) before we approve this. |
@d-kostov-dev Here is the recommendation from our A11Y expert:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment. Also, please fix the build errors (including lint and test errors).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
Also, please squash the commits into one "feat(datepicker): indicate selected day in aria-label" commit because this should be a single, atomic change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also run npm run build && npm run public-api:update
to update the public API file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please add a test for this change. You can use this if you want (after the "sets the correct value for the aria-label attribute" test):
it('sets the correct value for the aria-label attribute when the date is selected', () => {
const dayBtn: HTMLButtonElement = context.clarityElement.children[0];
const dvm: DayViewModel = context.clarityDirective.dayView;
context.testComponent.dayView.isSelected = true;
context.detectChanges();
expect(dayBtn.attributes['aria-label'].value).toEqual(`${dvm.dayModel.toDateString()} - SELECTED`);
});
@d-kostov-dev, VMware has approved your signed contributor license agreement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash the commits and keep the first commit message. These commits are not compatible with our release process.
Also, please rebase and run npm run build && npm run public-api:update
to fix the build error.
a61d1be
to
d630479
Compare
Sorry if you are still working on the rebase, but I see the merge commit you just pushed. We don't want a merge commit. There should be just one commit without any of the |
fixes VPAT-3637 PR Type Feature - Accessibility What is the current behavior? The currently selected date is not indicated to screen reader users. What is the new behavior? The aria-label of the day is now showing the word "Selected". Does this PR introduce a breaking change? No.
I went ahead and rebased for you to remove the |
🎉 This PR is included in version 13.7.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed PRs after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary. |
fixes VPAT-3637
PR Type
Feature - Accessibility
What is the current behavior?
The currently selected date is not indicated to screen reader users.
What is the new behavior?
The aria-label of the day is now showing the word "Selected".
Does this PR introduce a breaking change?
No.