-
Notifications
You must be signed in to change notification settings - Fork 4
Feature/84849 & Feature/92930 accessibility fixes #93
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
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.
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
src/webchat-ui/components/history/ChatScroller.tsx:131
- Ensure that an element with the ID 'webchatChatHistoryHeading' exists in the DOM so that the aria-labelledby reference is properly resolved.
aria-labelledby="webchatChatHistoryHeading"
src/webchat-ui/components/Modal/Modal.tsx:53
- [nitpick] Verify that the absolute positioning and right offset of -4 for the CloseButton maintains an adequate clickable area across different devices.
position: "absolute", right: -4,
cypress/e2e/messageAvatar.cy.ts
Outdated
@@ -103,7 +103,7 @@ describe("Bot message", () => { | |||
cy.openWebchat().startConversation(); | |||
cy.receiveMessage("bot message", {}, "bot"); | |||
|
|||
cy.get('[alt="bot avatar"]').should( | |||
cy.get('[data-testid="avatar"]').should( |
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 data-testid for the bot avatar is inconsistent with the other tests that use 'bot-avatar'; consider updating it for consistency.
cy.get('[data-testid="avatar"]').should( | |
cy.get('[data-testid="bot-avatar"]').should( |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
The tests will fail until I update chat-components to a newer version. I will update the chat-components once Cognigy/chat-components#118 is merged |
Success criteria
Please describe what should be possible after this change. List all individual items on a separate line.
Aria-labelledby is added to element with role="log"(Adding a label is making the message announcements very verbose with NVDA, as the label is announced with every sent or received message). Redundant aria-live="polite" is removedHow to test
Please describe the individual steps on how a peer can test your change.
Security
Additional considerations
Documentation Considerations
These are hints for the documentation team to help write the docs.