-
Notifications
You must be signed in to change notification settings - Fork 77
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 filtering and autocomplete #1125
Conversation
Deploy preview for fundamental-react ready! Built with commit a62e15b |
is this still a WIP or ready to be reviewed? |
@@ -39,7 +39,9 @@ export default { | |||
}; | |||
|
|||
export const ${componentName} = () => { | |||
let storyNames = Object.keys(stories).filter(story => story !== 'default'); | |||
let storyNames = Object.keys(stories).filter(story => { | |||
return story !== 'default' && story !== 'dev'; |
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.
Good idea! Just in case other reviewers are wondering why there's so many visual test changes - this is why. I think it's a good idea to remove the dev stories from the visuals.
I see this a11y violation, but I don't really understand it. I looked up the values for aria-controls, https://www.w3.org/WAI/PF/aria-1.1/states_and_properties#aria-controls and it says "ID reference list: A list of one or more ID references." We use aria-controls like this everywhere so 🤷♀️ Maybe this is a case of the tool not understanding grey area. |
This looks really good!!
|
Thanks for the review, Jenna 😃
|
@prsdthkr I think you're right about the autocomplete issue. Maybe we put a smaller version of this https://hig.concur.com/pages/develop/web/components/support.html#autocomplete-attribute-issue, to explain why that might happen.
The consumer then has full control to override our autocomplete attribute to whatever works at the time. |
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.
LGTM 🚢 Great work!
Description
In this change, we make the Combobox filterable and enable autocomplete capabilities.
We have tried to align with the specification here: ARIA 1.1 Combobox with Listbox Popup Examples
There is are some minor deviations from the specification because of the way we filter the Combobox options.
QA:
https://deploy-preview-1125--fundamental-react.netlify.app/?path=/story/component-api-comboboxinput--dev
fixes #1019