Skip to content
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

Add option to give custom highlight class to item as prop #189

Open
vivekitis opened this issue May 17, 2020 · 0 comments
Open

Add option to give custom highlight class to item as prop #189

vivekitis opened this issue May 17, 2020 · 0 comments

Comments

@vivekitis
Copy link

vivekitis commented May 17, 2020

  • vue-autosuggest version: 2.1.1
  • node version:
  • npm (or yarn) version:

Relevant code or config

                [`${componentAttrPrefix}__results-item--highlighted`]: isHighlighted

What you did:

What happened:

Reproduction sandbox/repository:

Problem description:
Feature Request.
Right now Highlight class can only be changed overriding the className in css that is added by the component. But there needs to be a provision to pass className as a prop to attach to elem at currentIndex, because there are cases when the exact classname is only known after build like using module level scope in vue styles.

Suggested solution:
Added Pr. #188.
please suggest any improvements if needed. can move prop to sectionConfig if needed.

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

No branches or pull requests

1 participant