-
Notifications
You must be signed in to change notification settings - Fork 215
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(combobox): Allow grouping of listbox items #535
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Reviewed Matt's work with NVDA/JAWS. Sounds good to me. |
); | ||
}; | ||
|
||
export default Status; |
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.
Broke this out, might be nice for it to be its own component at some point.
// TODO: useContext should not be called conditionally, | ||
// but to keep this function working we need to ignore till a refactor can happen. | ||
// Ideally there is a getTheme and a useTheme separately where getTheme is used outside of functional components | ||
// and useTheme is used inside functional components. Then this try won’t be necessary. | ||
// eslint-disable-next-line react-hooks/rules-of-hooks | ||
const context = React.useContext(ThemeContext); |
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.
Thanks for adding this
# Conflicts: # modules/_labs/combobox/react/lib/Combobox.tsx # modules/_labs/combobox/react/stories/stories.tsx # modules/_labs/core/react/lib/theming/useTheme.ts
* Fixed some various bugs while writing tests * Removed Jest tests that are now covered by Cypress
Paired with @vibdev to add Cypress tests, fix various bugs found while writing tests and removed Jest tests that are now covered with Cypress |
@@ -1,5 +1,6 @@ | |||
{ | |||
"projectId": "odida5", | |||
"baseUrl": "http://localhost:9001", | |||
"supportFile": "cypress/support/index.ts" | |||
"supportFile": "cypress/support/index.ts", | |||
"watchForFileChanges": 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.
I added this. I think it's annoying to write a bit of test code, then go back to Cypress to find out what I'm querying the DOM for and the Cypress test starts over again increasing time to write tests rather than decreasing it.
…ete-wip # Conflicts: # modules/_labs/combobox/react/lib/Combobox.tsx # modules/_labs/combobox/react/stories/stories.tsx
Summary
Adds groups for combobox. This is WIP so accessibility team can audit.
Checklist
yarn test
passespackage.json
canvas-kit-react
and/orcanvas-kit-css
universal modules, ifapplicable
Additional References