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

refactor!: update month calendar to use table #3355

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

web-padawan
Copy link
Member

Description

This is a first step of vaadin-date-picker overlay content a11y improvements.

Changed to use <table> markup. For now the focus is not yet changed.
The next step would be to use <button> in table cells like in Duet Date Picker.

Related to #3248

Type of change

  • Refactor

@web-padawan web-padawan added the a11y Accessibility issue label Jan 26, 2022
@sonarcloud
Copy link

sonarcloud bot commented Jan 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@web-padawan web-padawan marked this pull request as ready for review January 27, 2022 08:08
Comment on lines +405 to +409
if (this.__isDayFocused(date, focusedDate)) {
return '0';
}

return '-1';
Copy link
Member

Choose a reason for hiding this comment

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

nit: untested (ignore, in case the tests are to be added with the following refactors)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I will enhance keyboard navigation tests in the next PR.

Comment on lines +292 to +296
if (days.some((date) => dateEquals(date, focusedDate))) {
this.removeAttribute('aria-hidden');
} else {
this.setAttribute('aria-hidden', 'true');
}
Copy link
Member

Choose a reason for hiding this comment

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

nit: untested (ignore, in case the tests are to be added with the following refactors)

Copy link
Member Author

Choose a reason for hiding this comment

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

Will cover this in the next PR as well.

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 23.0.0.beta2 and is also targeting the upcoming stable 23.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants