-
Notifications
You must be signed in to change notification settings - Fork 834
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
Discuss and document guidelines for using EuiTooltip vs the title
property
#3588
Comments
Generally, With alternatives, It might be easier to make a more performant tooltip if it was text only (whereas Tooltip currently allows any JSX) which matches the capabilities of |
To somewhat respond to @myasonik's observation. There is one good place where title works and where it's fine as far as accessibility, and that's in showing a CSS (key part!) truncated word in string form.
Generally this is the best (and probably only) place to use it. If we have issues with how tooltips look, perform, or render vs title, we should likely augment tooltip to better address those concerns since as @myasonik mentions, we have better control over it's abilities (especially when it contains content that is not in the original string) |
|
I've had on my personal Todo list of experimentations is a truncation component (EuiTruncate) that automatically adds an EuiTooltip. This is probably the best solution to provide consumers with easy to use truncation best practices since a lot of them don't even use |
Closing in favor of a Meta discussion around EuiTooltip flexibility which I've included a link to this discussion but needs to be a part of a greater effort. |
Originally posted by @timroes in #3568 (comment)
Starting a conversation ...
on how we want to handle our guidance to consumers over when to use EuiTooltip or simply use
title
. I know there's also some a11y concerns to consider.The text was updated successfully, but these errors were encountered: