You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that React.ReactElement<any> is likely too strict. We do, however, need to consider a11y, so tab focus and keyboard navigation/interaction are a consideration and bare text is likely not an option. EUI could make assumptions about what to do with a string (e.g., wrap it in an EuiLink), but it'd have to be discussed.
I don't think we need to sacrifice the developer experience for accessibility; we can have both. I started to just open a PR to fix it but realized there were design considerations that were needed. Thanks for looking!
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.
Activity
thompsongl commentedon Sep 5, 2019
I agree that
React.ReactElement<any>is likely too strict. We do, however, need to consider a11y, so tab focus and keyboard navigation/interaction are a consideration and bare text is likely not an option. EUI could make assumptions about what to do with astring(e.g., wrap it in anEuiLink), but it'd have to be discussed.smith commentedon Sep 5, 2019
I don't think we need to sacrifice the developer experience for accessibility; we can have both. I started to just open a PR to fix it but realized there were design considerations that were needed. Thanks for looking!
cchaos commentedon Mar 18, 2020
@smith Do you still hav that PR handy, we can certainly help with the design considerations.
smith commentedon Mar 18, 2020
@cchaos No I checked on the branch and there's nothing there, so I don't think I made any changes back then. Thanks for looking!
[-]Allow strings for ToolTip children[/-][+]Allow strings for EuiToolTip children[/+]cchaos commentedon Sep 18, 2020
Related #4040 & #2027
cchaos commentedon Sep 18, 2020
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.