-
Notifications
You must be signed in to change notification settings - Fork 277
feat(ui5-calendar): improve header and day picker accessibility and focus behavior #12712
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
Conversation
|
🧹 Preview deployment cleaned up: https://pr-12712--ui5-webcomponents.netlify.app |
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.
The code looks good in my perspective.
There is one last issue:
- In the year range view the next/previous button tooltips should refer to year ranges instead of months.
unazko
left a comment
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.
The code looks good to me.
Tested with the accessibility manually with screen reader and AMP tool.
Everything works fine.
|
|
||
| cy.focused().realPress(["Shift", "F4"]); | ||
|
|
||
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.
redundant space
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.
Fixed in 55127dd
| .find("[tabindex='0']") | ||
| .should("have.focus"); | ||
|
|
||
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.
redundant space
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.
Fixed in 55127dd
| cy.get("@selectedDays").each(($day, index) => { | ||
| cy.wrap($day).should("have.attr", "aria-label"); | ||
|
|
||
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.
redundant space
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.
Fixed in 55127dd
|
|
||
| describe("Day Picker Tests", () => { | ||
| it.skip("Select day with Space", () => { | ||
| it.skip("Select day with Space", () => { |
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.
redundant space
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.
Fixed in 55127dd
| it.skip("Select day with Space", () => { | ||
| cy.mount(<Calendar id="calendar1"></Calendar>); | ||
|
|
||
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.
redundant space
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.
Fixed in 55127dd
| expect(selectedDate).to.eq(expectedDate); | ||
| }); | ||
|
|
||
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.
redundant space
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.
Fixed in 55127dd
|
|
||
| cy.mount(<Calendar id="calendar1"></Calendar>); | ||
|
|
||
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.
redundant space
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.
Fixed in 55127dd
| it("Day names are correctly displayed", () => { | ||
| cy.mount(<Calendar id="calendar1"></Calendar>); | ||
|
|
||
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.
redundant space
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.
Fixed in 55127dd
| const todayFromTimestamp = new Date(timestamp * 1000); | ||
| const actualToday = new Date(); | ||
|
|
||
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.
redundant space
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.
Fixed in 55127dd
packages/main/src/Calendar.ts
Outdated
| _pickersMode: `${CalendarPickersMode}` = "DAY_MONTH_YEAR"; | ||
|
|
||
| @property({ type: Boolean, noAttribute: true }) | ||
| _isOpenedFromPopover?: boolean = false; |
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.
what does this mean?
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.
Fixed in 55127dd
|
🎉 This PR is included in version v2.18.0-rc.2 🎉 The release is available on v2.18.0-rc.2 Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version v2.18.0 🎉 The release is available on v2.18.0 Your semantic-release bot 📦🚀 |
Uh oh!
There was an error while loading. Please reload this page.