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

Is there a way to remove text__highlight class all togather? #17

Closed
geongeorge opened this issue Aug 8, 2019 · 2 comments
Closed

Is there a way to remove text__highlight class all togather? #17

geongeorge opened this issue Aug 8, 2019 · 2 comments
Labels
question Further information is requested

Comments

@geongeorge
Copy link

Hey,
I noticed I was not able to change the styles even after binding classes.
The text__highlight class is overriding every other classes(tailwind) I add.
I do not wanna use !important, is there any other solution?

<text-highlight 
      :queries="queries"
      :highlightClass="['bg-red-200', 'rounded']"
      >

image

Regards,
Geon George

@AlbertLucianto AlbertLucianto added the question Further information is requested label Aug 9, 2019
@theprobugmaker
Copy link

I had the same issue using Tailwind, it's impossible to change the default color because text__highlight is overwriting it.

@AlbertLucianto
Copy link
Owner

Hi @geongeorge, @zefexdeveloper, thanks for raising the issue!

In v2.0.10, you can do

import TextHighlighter from 'vue-text-highlight/dist/component';
import 'vue-text-highlight/dist/style.css';

Hope that solves your issue! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants