-
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(autocomplete): highlight text matching the inputValue #11155
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.
Nice! 🚀
packages/calcite-components/src/components/autocomplete-item/resources.ts
Outdated
Show resolved
Hide resolved
@@ -61,6 +61,12 @@ | |||
color: var(--calcite-autocomplete-heading-text-color, var(--calcite-color-text-1)); | |||
} | |||
|
|||
.text-match { |
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.
Since you're adding a reusable util, can we move this into a mixin?
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 mixin doesn't make sense at this time since the styles between autocomplete and combobox are not consistent. Hopefully #11173 can resolve that.
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.
Sounds good. I'll add a note about this to the issue.
packages/calcite-components/src/components/autocomplete/autocomplete.tsx
Outdated
Show resolved
Hide resolved
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.
Nice! 🚀
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.
Visuals lookin' gewd
Related Issue: #11154
Summary
autocomplete-item
elementsBEGIN_COMMIT_OVERRIDE
END_COMMIT_OVERRIDE