-
Notifications
You must be signed in to change notification settings - Fork 842
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
EuiMark for highlighting text content #2085
Comments
How would this component be different from EuiHighlight? Or should EuiHighlight be altered to allow these extra color selections and use |
I think preferably We'd likely want a transparent and strong option as well. |
It (or the underlying logic function) should produce some kind of structured data that can be mapped into e.g. HTML/ |
Any one have any time or work invested in this yet? If so, I'll look elsewhere. If not, I may use it as a from-scratch comparison for the different styling solutions. |
@thompsongl I have not. My plan was the following props
with that just generating a We have the following potential usage:
Generally a bright yellow, with dark text is the norm for coloring. In cases like |
The required result is to highlight the text just like it is highlighted with a highlighter(like labels, above)? If yes, do we need a new component or should we extend the functionality of the EuiMark feature? |
@mridulgogia The I had done some initial work on this issue several months ago, although I don't believe the branch to be feature-complete. Anyone is welcome to take up where I left off: https://github.com/thompsongl/eui/tree/euimark/src/components/mark |
Can i work on this issue? |
Closed via #3060 |
We have a lot of places in our layouts where we highlight text content. Principal examples are Discover and the Log UI but I'm sure there are more. We should probably make a new component
EuiMark
to standardize this.mark
element. https://www.w3schools.com/tags/tag_mark.aspEuiBadge
should probably accept both a namedcolor
prop as well as a hex value. There are plans in the Logs UI to have multiple highlights (with color selection) in play at once.This originally cam up in elastic/kibana#39569 (review)
The text was updated successfully, but these errors were encountered: