-
Notifications
You must be signed in to change notification settings - Fork 841
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
EuiListGroupItem HTML title bug #2011
Comments
This one isn't as straightforward as I thought.
We either need to 1) force Also, I'm curious how you're rendering different content in the tooltip and list item. The contents of both are just the |
All I'm saying is we should likely not pass the |
The title is there in case the text is truncated. I do realize there is a redundancy when also adding tooltips which we can fix. However, we'll still need a way to sanitizing the children in order to be able to pass a string to the |
We can
both are easy. The other case we need to figure out is a |
There is a 3rd option... we can ask React to render the element and feed the resulting DOM's |
I'll take a look at making all of the above happen |
Option 3 is interesting and any solution to this would be a helpful global service as we truncate a lot of text that may be supplied as something other than a string. Ex: EuiFilterButton |
In Cloud: (https://github.com/elastic/cloud/issues/33924)
In EUI docs:
Regardless of the fact that we use a
ReactNode
for theEuiListGroupItem
label
and I'm guessing EUI usesstring
most of the time, we shouldn't render something as an HTMLtitle
as well as with an EUI tooltip.The text was updated successfully, but these errors were encountered: