Skip to content

Support type to select in ListBox, Menu, and SideNav#261

Merged
devongovett merged 2 commits intomasterfrom
type-select
Mar 11, 2020
Merged

Support type to select in ListBox, Menu, and SideNav#261
devongovett merged 2 commits intomasterfrom
type-select

Conversation

@devongovett
Copy link
Copy Markdown
Member

This adds support for type to select to our collection components, which allows users to start typing the name of an option to jump to it. This is supported automatically for simple <Item> elements with only plain text inside. For complex children, a textValue prop is required on the <Item> to make it support type to select. There's a warning in case the user misses this.

For internationalization support, Intl.Collator is used to do the string comparisons. That handles case folding, ignoring of accents, etc. for us.

@adobe-bot
Copy link
Copy Markdown

Build successful! 🎉

@devongovett devongovett merged commit e76de3e into master Mar 11, 2020
@devongovett devongovett deleted the type-select branch March 11, 2020 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants