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

Customizing highlighted text styles #32

Open
madieukhang opened this issue May 10, 2021 · 3 comments
Open

Customizing highlighted text styles #32

madieukhang opened this issue May 10, 2021 · 3 comments

Comments

@madieukhang
Copy link

#Hi i'm using and how i can clear highlighted mentions after clear textarea, and how i can change style customcss highlighted text. Thanks

@madieukhang madieukhang changed the title Clear Highlighted Clear Highlighted [Mentions] May 10, 2021
@seidme
Copy link
Owner

seidme commented May 19, 2021

I don't think I get the first question, will you please be able to provide additional info or a reproducible plunker?

When it comes to customizing the highlighted text style, you can provide the class name as follows:
[tagCssClass]="'my-custom-highlight-tag'"

Note however that the component defining your custom CSS class can't be encapsulated, so you need:
encapsulation: ViewEncapsulation.None

@madieukhang
Copy link
Author

madieukhang commented Jun 16, 2021

hi thanks for reply i applied customClass when add encapsulation: ViewEncapsulation.None now i have another issue with textarea have background color like: background-color: red how can i apply css flx-text-input-highlight. I tried it's just applying when textarea background: none.
Thanks

@seidme seidme changed the title Clear Highlighted [Mentions] Customizing highlighted text styles Jun 16, 2021
@seidme
Copy link
Owner

seidme commented Jun 16, 2021

I see what you think, not sure why I forced background: none;. I'll check if it could be removed and deploy a new version once ready. Thank you for your feedback ^^

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

2 participants