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

Have the ability to use another tag than "mark" for highlight of matched characters #306

Open
williamdes opened this issue Jan 2, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@williamdes
Copy link

Is your feature request related to a problem? Please describe.
I would like to not use "mark" as it has bootstrap classes and use another tag like "b"

Please Describe alternatives you've considered
Override the bootstrap CSS

Additional context
Refactoring at https://github.com/code-lts/doctum

PS: this lib is great !

@williamdes williamdes added the enhancement New feature or request label Jan 2, 2022
@folknor
Copy link

folknor commented Jan 10, 2022

This is the only CSS for mark added by bootstrap 5's CSS reboot stylesheet:

mark {
  padding: $mark-padding;
  background-color: $mark-bg;
}

In your CSS, if you do this:

#autoComplete mark {
  padding: 0;
  background-color: none;
}

You should be fine, because #autoComplete mark has a specificity of 101, while mark only has 001.

https://polypane.app/css-specificity-calculator/

There's more talk about this specific topic here #264

@williamdes
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants